Re: error reporting php-5.0.4-10.4 on FC4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux