PDA

View Full Version : PLEASE HELP


uslsmed
12-04-2004, 11:10 PM
Guys ...

Im havin' problems with a file i've uploaded with php ... I only see this ....

Parse error: parse error, unexpected T_STRING in /home/uslsmed/public_html/board2.php on line 118

.... can anyone tell me ... what's wrong?

please PM me if you have something to help.

thanks a lot :rolleyes: :rolleyes:

688206002
12-05-2004, 12:08 AM
Originally posted by uslsmed@Dec 4 2004, 06:10 PM
Guys ...

Im havin' problems with a file i've uploaded with php ... I only see this ....

Parse error: parse error, unexpected T_STRING in /home/uslsmed/public_html/board2.php on line 118

.... can anyone tell me ... what's wrong?

please PM me if you have something to help.

thanks a lot :rolleyes: :rolleyes:
15309


It means there's an error with your code. Please post the code here and we'll debug it for you :)

reid315
12-05-2004, 12:33 AM
i think it's a small markup error, like forgetting the semi colon or mispelling a variable or function.

mahangee
12-05-2004, 12:47 PM
Originally posted by uslsmed@Dec 5 2004, 12:10 AM
please PM me if you have something to help.
15309

This is a forum, so why do we want to PM the answer?

And just a little hint, the typo in your code will probably be in the few lines above the error line. Although sometimes it can be alot more. Once had an typo which was 200+lines away from where the error was being found. Crazy huh? Although that has only ever happened once to me.

688206002
12-05-2004, 05:14 PM
This script is a friendly way to debug durnig development; it doesn't quite solve the 200+ lines away problem, but at least it shows you a few lines of code around the "problem area" and the error report is much more visual :)

http://www.phpmachine.com/error-handler/

And I repeat again, recommended only for development stages... you obviously wouldn't want your users to see a few lines of your code around the problem area... or a few lines of code from any section for that matter.

EnderX
12-05-2004, 09:33 PM
Check and see if there are quotes around (or should be around) what the code is. I had a simple print command and I messed up and forgot the quotes, so it didn't read the string. Also check the semi-colon as explained above.

uslsmed
12-07-2004, 03:37 AM
Guys ...

Thanks for your replies ... I'm glad there's a lot of you willing to help.

I'm sorry to tell you that I am not a PHP expert ... in fact I started learning it just these past few days ... I really don't know about it for the moment ....

About the codes ... my friend just gave me the code and told me little instructions ... perhaps that's the reason why I got a hard time with the codes ...

Anyways ... I' ll post the codes later ...

Thanks again for your help.

:rolleyes:

reid315
12-07-2004, 04:19 AM
um double post?

and on an added note, there are a few places here on HM that have php tutorials. please take a quick look around!