Recif
Recif

Reputation: 479

Errors display with php

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

Answers (2)

w3b
w3b

Reputation: 853

put this on top of your php page.

 error_reporting(E_ALL);
 ini_set("display_errors", 1);

Upvotes: 0

Robert
Robert

Reputation: 153

You could try.

error_reporting(E_ALL);
ini_set("display_errors", 1);

Upvotes: 1

Related Questions