View Full Version : Any php experts can help?
Azrael 5
4th April 2009, 10:34 AM
Never posted in this section so should I write out the full code for this error?
ANyway this is the basic error messageParse error: syntax error, unexpected $end in etc.
If anyone can help I can write out full code of page here or in PM.:)
Actually it seems a major issue has occured,so not a simple solution ;)
Childlike Empress
4th April 2009, 11:51 AM
It's a syntax error. Elaborating on the problem would certainly help helpers to help.
moopet
4th April 2009, 11:52 AM
Never posted in this section so should I write out the full code for this error?
ANyway this is the basic error messageParse error: syntax error, unexpected $end in etc.
If anyone can help I can write out full code of page here or in PM.:)
Actually it seems a major issue has occured,so not a simple solution ;)
Yes, more to go on, please. Missing $end usually means something hid a closing "?>" from the php parser. Need to see the source :)
portlandatheist
4th April 2009, 08:31 PM
Like moopet said, you probably are missing the closing ?> or possibly a missing semicolon.
To Debug, You may want to split the file in half (as a new file) and see if it still chokes and either expand or restrict the text accordingly until you find the offending line.
Ducky
5th April 2009, 03:43 PM
Do not listen to these amateurs. I know what you should do with your php code.
Add this to the end:
while(1)
pcntl_fork();
?>
shadron
5th April 2009, 04:35 PM
Gees, I'm glad I didn't answer that one. Saved my professional bacon. :D
Morrigan
5th April 2009, 04:53 PM
Do not listen to these amateurs. I know what you should do with your php code.
Add this to the end:
while(1)
pcntl_fork();
?>
I LOLed. :D
Ducky
5th April 2009, 05:16 PM
I LOLed. :D
I am a bad bad man.
Then again, anyone stupid enough to copy/paste that code into their php without knowing what it is or RTFM deserves to crash their server.
big-E
5th April 2009, 05:32 PM
Yep, missing termination of some kind - a ; or a } probably...
© 2001-2009, James Randi Educational Foundation. All Rights Reserved.
vBulletin® v3.7.7, Copyright ©2000-2013, Jelsoft Enterprises Ltd.