Re: error reporting php-5.0.4-10.4 on FC4

From: Date: Mon, 24 Oct 2005 03:46:28 +0000
Subject: Re: error reporting php-5.0.4-10.4 on FC4
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-224532@lists.php.net to get a copy of this message
Bob Hartung wrote:
Jasper If if make a file containing only <?php
    phpinfo() ;
?> I get what I expected. If I make a file containing <?php phpinfo() ; // Now a simple class and a call to the class
    class Simple()
    {
        void __construct()
        {
            echo "In the constructor" ;
        }
    }
    $newSimple = new Simple ;
?> I get NO output or errors in the browser window. If I select "view source" it returns: <html><body></body><html> Eh? Anyone with any other ideas Tnx Bob Hartung Jasper Bryant-Greene wrote: <snip all before. How about <?php error_log('this should write to the file var/log/php_errors'); echo 'a test to write to error log file'; ?>
Which should write to your error log file,php_errors, in the existing directory "var/log". The browser should also render "a test to write to error log file". Have you tried changing the log file name to something else? I don't think that php_errors is a key word, but you never know.

« previous php.general (#224532) next »