Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run PHP script but browser blank NADA

Status
Not open for further replies.

sen5241b

IS-IT--Management
Sep 27, 2007
199
US
After I upgraded my server I stopped getting PHP errors displayed. Now, when there is a typo, the browser is blank there is nothing. Firefox and IE both do this. If I find the typo and fix it then the browser displays what I have in the script. I have no php.ini

In my script I have the following but it doesn't help.

PHP:
error_reporting(E_ALL);
ini_set('display_errors', true);
 
I have no php.ini

Then put one in the site root folder and set error reporting on.

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
Oh!


Either that, or avoid making any typing errors in your scripting.

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
Another way is to create a file that has just the error reporting code in it. And then include the script you are targeting. Then the script will not fail at parse time.
 
Avoid errors. why didn't I think of that!
Putting a php.ini in root web folder "/" with error_reporting set to On does nothing.
My php.ini has

PHP:
error_reporting = E_ALL & ~E_DEPRECATED
display_errors = On
display_startup_errors = on

 
problem solved

Okay, so on Godaddy servers there is a file called .user.ini in the public_html folder that lets you set parms that would normally be in php.ini. Make sure your ftp client has "show hidden files" turned on.
 
Avoid errors. why didn't I think of that!

It was the best I could come up with based on the information in your description of the problem.


Now ...
so on Godaddy servers there is a file called .user.ini in the public_html folder that lets you set parms that would normally be in php.ini.
Okay, had you mentioned GoDaddy shared hosting in your original post some of us may have been able to tell you that from the word go.

They use a different name for the global php.ini local override file because it helps to prevent some of the common exploits that target a local php.ini to reactivate globally disabled functions.


Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top