Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.