Is this something I overlooked when upgrading from PHP 4 to PHP 5? If I write a script with a mistake in it (an extra parenthesis), <?php echo "This is a php-script"; { ?> PHP 4 gives an error message: Parse error: parse error, unexpected $ in /server/apache/htdocs/errormessage.php on line 3 PHP 5 returns an absolutely blank page. This is quite inconvenient, when trying to locate something extra or someting missing in a 300 line script. I could not find any mention of this in the PHP manual in the chapter which dealt with changes in migrating from 4 to 5.
Hi, Php 5 is not showing errors as you have to configure it If you are working on linux Box then you have to configure error system in this file /etc/php.ini Thanks
If u dont find your php.ini at those locations... put a php file with <? phpinfo(); ?> and grab the location from there... also u might wanna check the same directory for a error_log it might go there
or you can just place error_reporting(E_ALL); at the top of the PHP file to display errors. If this is a shared box you dont want error reporting always on.
mwasif, my reply was to the initial posting as an offset to making changes in php.ini for error reporting as not everyone has access to it. You could also activate it through .htaccess if the server allows it as well as allowing display_errors.