You are here: Re: [PHP] error reporting php-5.0.4-10.4 on FC4 « PHP « IT news, forums, messages
Re: [PHP] error reporting php-5.0.4-10.4 on FC4

Posted by Derek Williams on 10/24/05 06:46

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.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация