You are here: Re: PHP syntax error causes no output « PHP Programming Language « IT news, forums, messages
Re: PHP syntax error causes no output

Posted by bill on 10/10/07 15:07

Tyno Gendo wrote:
> bill wrote:
>> I just started a new project on a new virtual server.
>> If I write a small script, it executes fine.
>>
>> If there is an error in the small script, I get no output at all, but
>> the browser shows "done."
>>
>> here is the small script:
>> <?php
>> session_start();
>> $debug=1;
>> if ($debug) {
>> error_reporting(E_ALL);
>> echo "<br />SESSION:<br />";
>> print_r($_SESSION);
>> echo "<br />POST:<br />";
>> print_r($_POST);
>> echo "<br />";
>> }
>> echo " duh";
>> echo "double duh";
>> ?>
>>
>> If I remove the semicolon after echo " duh"; to generate a syntax
>> error, I get no output at all. no error is reported in the browser.
>>
>> Any ideas ?
>>
>> bill
>
> Check the error_reporting and display_errors in php.ini
>
> I get this on our live servers all the time but we can't turn the
> reporting on, so I usually download to an internal dev machine
> and test on there with all errors/display on.

php.ini has a blank for display_errors and 2047 for error_reporting.

using ini_set, what are valid values for display_errors ?
bill

 

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

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