[PHP] Error Messages, Windows, and Tequila
Hidy-ho good meighbors and neighborettes! I continue my, as yet unquenched, fascination with the Windows operating system[sic]. Does anyone know (I have error reporting set so high it would make your head swim) why errors wouldn't be output to a browser window when they occur? For instance, I typed the following; while($doc = odbc_feych_array($dbDocData) // note the misspelling of fetch that means I was thinking in wild-west dialect at the time, 'fey-uch' An erro went to the Apache log but no error, such as the highly popular syntax erro was sent to the browser. Alas, a search of Google revealed nothing worthwhile, probably because I didn't have the right search term. Would someone please shed some light on this? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error Messages, Windows, and Tequila
Printing error messages to your output can be disabled with the display_errors directive in your php.ini file. To enable error printing, the directive should read: display_errors = On Cheers, Dave Jay Blanchard wrote: Hidy-ho good meighbors and neighborettes! I continue my, as yet unquenched, fascination with the Windows operating system[sic]. Does anyone know (I have error reporting set so high it would make your head swim) why errors wouldn't be output to a browser window when they occur? For instance, I typed the following; while($doc = odbc_feych_array($dbDocData) // note the misspelling of fetch that means I was thinking in wild-west dialect at the time, 'fey-uch' An erro went to the Apache log but no error, such as the highly popular syntax erro was sent to the browser. Alas, a search of Google revealed nothing worthwhile, probably because I didn't have the right search term. Would someone please shed some light on this? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error Messages, Windows, and Tequila
Hi Jay, Wednesday, November 16, 2005, 4:36:25 PM, you wrote: Does anyone know (I have error reporting set so high it would make your head swim) why errors wouldn't be output to a browser window when they occur? For instance, I typed the following; Are you 100% Tequila-worm sure you've got all the relevant ini flags set? (display errors, E_ALL, yadda yadda) and that PHP on your lovely Windows box is actually *using* that ini file and not the mystic built-in one? Tis the only reason I can think of that would halt it dead, because as shocking as this may sound - PHP on Windows *can* actually display errors ;) Cheers, Rich -- Zend Certified Engineer PHP Development Services http://www.corephp.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Error Messages, Windows, and Tequila
[snip] Printing error messages to your output can be disabled with the display_errors directive in your php.ini file. To enable error printing, the directive should read: display_errors = On [/snip] You are correct sir, it is set to off by default. I will hike over to the data center and flick the switch. Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Error Messages, Windows, and Tequila
Also check to make sure that its the right php.ini file, I have had a problem in the past when the installer has put the php.ini file in the WINDOWS directory and there is an existing one in the PHP directory as well. I would check phpinfo and see where the php.ini file is located. On 11/16/05, Richard Davey [EMAIL PROTECTED] wrote: Hi Jay, Wednesday, November 16, 2005, 4:36:25 PM, you wrote: Does anyone know (I have error reporting set so high it would make your head swim) why errors wouldn't be output to a browser window when they occur? For instance, I typed the following; Are you 100% Tequila-worm sure you've got all the relevant ini flags set? (display errors, E_ALL, yadda yadda) and that PHP on your lovely Windows box is actually *using* that ini file and not the mystic built-in one? Tis the only reason I can think of that would halt it dead, because as shocking as this may sound - PHP on Windows *can* actually display errors ;) Cheers, Rich -- Zend Certified Engineer PHP Development Services http://www.corephp.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php