|
Subject:
|
Problem seeing errors?
|
|
Posted By:
|
blast19
|
Post Date:
|
11/15/2003 4:03:51 PM
|
Hi,
If anyone can help me I'd really appreciate it. I am not getting errors printed when I run a script that has errors in it. I am running on Windows Apache and testing my scripts in Internet Explorer. I have changed the PHP.ini file in my windows directory to allow errors and I have changed some settings in Internet Explorer. I appreciate any suggestions. Thanks David
|
|
Reply By:
|
nikolai
|
Reply Date:
|
11/15/2003 9:14:33 PM
|
It would help if you were more specific about the configuration settings you changed...
You need to have error_reporting = E_ALL (in php.ini) to log all errors and warnings. You need to have display_errors = on to send logged errors and warnings to the client as output. There shouldn't be anything you can set in Internet Explorer that affects how PHP errors are displayed -- they're sent to the browser as HTML, so IE just thinks they're part of the web page you're displaying.
Take care,
Nik http://www.bigaction.org/
|
|
Reply By:
|
blast19
|
Reply Date:
|
11/16/2003 7:19:46 PM
|
Thanks nikolai,
Unfortunately though, I am still not seein errors. I should probably add that I am running Apache2Triad which is just a prepackaged installation of components. I just did a clean reinstall of Windows XP today, still not working. When I made the changes in IE I wasn't thinking, damn novices eh? thanks again, if you can think of anything else I would really appreciate it. David
quote: Originally posted by nikolai
It would help if you were more specific about the configuration settings you changed...
You need to have error_reporting = E_ALL (in php.ini) to log all errors and warnings. You need to have display_errors = on to send logged errors and warnings to the client as output. There shouldn't be anything you can set in Internet Explorer that affects how PHP errors are displayed -- they're sent to the browser as HTML, so IE just thinks they're part of the web page you're displaying.
Take care,
Nik http://www.bigaction.org/
|
|
Reply By:
|
richard.york
|
Reply Date:
|
11/16/2003 8:40:45 PM
|
Aye! Uh you didn't reinstall Windows just to get PHP working, right??? This sounds to me like your errors are going to a log of some kind.. my guess if it isn't a PHP.ini setting (located at C:\Windows\php.ini). It is likely an Apache setting that's overriding a php.ini error setting. I don't know *jack* about setting up Apache but I do know that if PHP is installed as an Apache module that php.ini settings can be overridden in httpd.conf and by .htaccess files, more likely the former than the latter as .htaccess files are created and over-ridden on a per directory basis (You would have to have deliberately created one) and I *think* that httpd.conf is done per virtual domain, not sure. I've overridden values that way by using a .htaccess file in the past but have never messed with setting up apache so I wouldn't know what to look for in httpd.conf.
The point to all of this being, look at the server configuration or look at php.ini, this doesn't have anything to do with the OS or browser!!
Good luck! : ) Rich
::::::::::::::::::::::::::::::::: Smiling Souls http://www.smilingsouls.net :::::::::::::::::::::::::::::::::
|