Reputation: 479
I've read lots of posts here about that but found nothing that worked for me! I need to have php errors displayed on browser for one site. All other site must not. In my php.ini I've
error_reporting = E_DEPRECATED & ~E_STRICT
and
display_errors = On
On My .htaccess I've
php_flag display_startup_errors on
php_flag display_errors on
php_flag html_errors on
I've tried to put
error_reporting(E_ALL);
on the starting of my php script I need to debug, but always I've an error, there is a blank page, and not errors. Nothing more in the log file on the server... I don't understand how to have these errors displayed... Any idea please?
[edit] Starting of my php script:
ini_set('display_errors', 'On');
error_reporting(E_ALL);
include_once("config.php");
include_once("include/functions.php");
function main(){
global $link;
include("header.php");
echo '
<!-- Our Services -->
Upvotes: 0
Views: 100