Jump to content

PHP display errors


Mateobus

Recommended Posts

Try something like this:
[code]<?php

if($var == bla)
  echo "var is bla";
}

?>[/code]
Obviously I have deliberatly leftout the opening curly bracket to force an error inbthe code. You should get an error like the following:
Parse error: parse error, unexpected '}' in path/to/your/file/here]on line 5

If you mean notice errors, which are not errors. You'll want to remove [b]& ~E_NOTICE[/b] from the error_reporting directive in the php.ini
Link to comment
https://forums.phpfreaks.com/topic/23592-php-display-errors/#findComment-107407
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.