By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,402 Members | 1,621 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,402 IT Pros & Developers. It's quick & easy.

displaying errors

P: n/a
Hello,

php_info(); for display_errors variable says: Off, Off. I tried the
error_reporting(E_ALL);, but nothing happens. If I have an error
somewhere, PHP just silently dies, no output whatsoever. Which variable
has to be set so that error_reporting() function works, but no
errors/warnings are displayed if the error_reporting() wasn't executed
(admins don't want to have display_errors On globally)? PHP Version is
4.3.3.

--
"Now the storm has passed over me
I'm left to drift on a dead calm sea
And watch her forever through the cracks in the beams
Nailed across the doorways of the bedrooms of my dreams"
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Nikola Skoric wrote:
Hello,

php_info(); for display_errors variable says: Off, Off. I tried the
error_reporting(E_ALL);, but nothing happens. If I have an error
somewhere, PHP just silently dies, no output whatsoever. Which variable
has to be set so that error_reporting() function works, but no
errors/warnings are displayed if the error_reporting() wasn't executed
(admins don't want to have display_errors On globally)? PHP Version is
4.3.3.


Nikola,

I've seen this when I had a syntax error in my PHP. Rather than
detecting the error, PHP silently crashes.

First, check your php.log file to see if there's anything there.
Sometimes I've seen things there that aren't displayed. If not, try
commenting out blocks of code until you get *something*.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jul 17 '05 #2

P: n/a
By setting the display_errors directive.

ini_set('display_errors', 1);

Of course a fatal error, such as a parse error, will still be silent as
the code will never execute (hence the setting of display errors at
runtime won't execute) but other errors will show up. Also consider
setting it with .htaccess and/or simply ask the admin where the PHP
errors are logged and read that log (this is preferred anyways...)

Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.