Jump to content

Recommended Posts

I can't get my server to display error messages, ever.

The following code produces a totally blank white screen:

[code]<?php

error_reporting(E_ALL);

lol test

?>[/code]

and error reporting is set to E_ALL in php.ini too.

I need the error messages to work. Can anyone suggest anything i can try?

Thanks.
Link to comment
https://forums.phpfreaks.com/topic/33967-errors-not-displaying/
Share on other sites

change the setting in the PHP ini file. i believe that files are checked firstly to make sure the file is essentially valid PHP - ie, no parse errors, etc. only THEN is it run. so if you have parse errors like this, then the ini_set line, etc, wont even get run.

you need to either set up a .htaccess in your web root changing the error_reporting / display_errors settings, or change them directly in the php.ini file.

cheers
Link to comment
https://forums.phpfreaks.com/topic/33967-errors-not-displaying/#findComment-159567
Share on other sites

[quote author=redbullmarky link=topic=122178.msg503627#msg503627 date=1168645547]
sure - but also in your php.ini file, have you got display_errors turned on?
[/quote]

Oh man that's exactly it. Shoulda checked that to start with. Thanks very much for the help, it's been driving me nuts.
Link to comment
https://forums.phpfreaks.com/topic/33967-errors-not-displaying/#findComment-159596
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.