Jump to content

No Errors appearing


donaldtrump

Recommended Posts

Hello.I'm using this server and no errors are appearing at all

for any php code or for mysql.

If I did a simple script like this:

  <?php

    echo("yelll

  ?>

The page would just be blank.I used the phpinfo()

function and was told that error_display was on.

I'm puzzlede by this.

  Any help appreciated

    Thanks

Link to comment
https://forums.phpfreaks.com/topic/67632-no-errors-appearing/
Share on other sites

There's a directive in the php.ini file like so:

 

error_reporting  =  E_ALL | E_STRICT

 

It may likely be set to something that doesn't allow you to see any important errors... try setting it to how I have in the above example

Also make sure display_errors is enabled too.

Link to comment
https://forums.phpfreaks.com/topic/67632-no-errors-appearing/#findComment-339771
Share on other sites

ini_set("display_errors", "1");

ini_set("error_reporting", "1");

These 2 lines above ^^ Have been disabled since PHP 3! Use:

<?php
error_reporting(1);
error_reporting(E_ERROR | E_WARNING | E_PARSE);
error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
error_reporting(E_ALL ^ E_NOTICE);
error_reporting(E_ALL);
ini_set('error_reporting', E_ALL);
?>

instead

Link to comment
https://forums.phpfreaks.com/topic/67632-no-errors-appearing/#findComment-340072
Share on other sites

I added the code that N350CA suggested but it's making no difference.Still a blank page.As I say ,the php.ini settings have display errors  on.

It works fine without syntax errors but won't display anything

otherwise.

  This is the most #$#$#$ I've ever seen.

 

Link to comment
https://forums.phpfreaks.com/topic/67632-no-errors-appearing/#findComment-340218
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.