Host - A Home For Parasites
[QUOTE=Moonbat;2***2]Maybe it's just your host?
Try a differnt host to see if you get the same problems.[/QUOTE]
It's not the host. It's my web server at home on my PC.
I write my programs there and then once tested to be working correctly, I then put them on my Internet web site.
I was using PHP 4 before. When I made a program error, the error and line number would be displayed to the screen, which made it quicker to debug.
I upgraded to PHP 5. Now it doesn't do that any more. Just displays a bland server 500 error with no other info.
I use error logging, but it would be much more convenient to see the errors on screen the way PHP 4 did it before.
Probably a "php.ini" setting, but if so, I can't find it.
Where's my rum?
An Error By Any Other Name, Still Sux
[QUOTE=mike*5*;2***4]If it gives that generic error message on all pages, it's probably a server problem (PHP not configured correctly, or something).
If it only shows that page when there is an error in your code, try turning error displaying on in php.ini:
[url]http://www.php.net/manual/en/ini.php[/url]
Search the page for "error".[/QUOTE]
I was able to activate error logging.
The errors in the log are the same errors that used to display on the screen, but my INI settings don't seem to make it work that way anymore.
But error logging is OK, since I can keep it displayed in one window while editing and running the program in another. I just need to immediately know exactly what and where the error is to be able to fix it.
Otherwise, even a missing ; or any other simple syntax error causes a server 500 error in every case.