Click to See Complete Forum and Search --> : php parse error
wujimon
03-25-2003, 09:51 PM
Hello. I had php and apache working before as documented in this thread (http://www.justlinux.com/forum/showthread.php?s=&threadid=89207), but now, when I try php again, I get the following error:
Parse error: parse error, unexpected T_STRING in /usr/bin/php on line 8672
Does anyone have any insight into this? When I tried to open up /usr/bin/php in a text file, it just displayed a whole bunch of gargbage.
Any help would be greatly appreciated.
thanks.
wuji
Forgot to add:
Redhat 8
php-4.2.2-8.0.7
Hi
Did you search this forum, php.net and Google before posting your question here? If so, what did you find?
When I tried to open up /usr/bin/php in a text filemost probably it's a binary.
unexpected T_STRING in /usr/bin/php on line 8672I'm real curious about the file you are looking at; it has *8672 lines*.
Btw, lookout for missing ; at the end of the lines in the range 8665-8671. All PHP code has to be terminated by a ; (semi-colon).
regards
theN
wujimon
03-26-2003, 10:22 AM
Hello..
yes.. i did try searching both google and 2 discussion forums for this. There are a ton of hits when I type in "parse error" but they usually refer to a specific php source file, however I think in my case, the "/etc/bin/php" is, like you said, a binary and therefore can't really be viewed with a text editor. So in this case, it makes it difficult to see what's on line #8672.
I've tried uninstalling and reinstalling the RPMs and still no luck. I think I may just have try try and recompile the src for both apache and php and see if that will fix it.
Also, FYI, I have:
httpd-2.0.40-11
I believe there has been issues with apache2 and php4.2. Perhaps this could be one of those issues.
Any other thoughts regarding the matter would be greatly appreciated.
wuji.