Forum Moderators: coopster
I finally set up my Mac to run my first PHP script and I tried to run it and all I get is errors. I edit, the error says a different line and I start the sequence again. Problem is I now have a line that I don't know why it's wrong.
In ASP I get an error number and I can search and find a reason that the error occured, however in PHP I just get
Parse error: parse error, expecting `','' or `';'' in /Users/brownie/Sites/dog_day/dir.php on line 10
most of the time a parse error reports the correct line, or it is the line before.
although sometimes it reports the line that is the end of the file. this happens when you do not close a curly bracket. I agree that these are usually the most difficult parse errors to discover and correct.
best,
If I still can't get it I'll post my code. Although I have posted code before I don't like to because I don't like people thinking I want them to do my work for me, and because I like to try to figure things out on my own as much as possible.
Thanks for the pointers, I'll keep you posted.
My experience is quite the contrary. But it helps to understand how the PHP engine thinks. Like when it tells you the error is on line 244 - which is actually the last line of HTML code. The error was an open if/else statement. The more I work with PHP the more I like it. Not always sensible but usually fair. ;)