Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
How to show parse errors instead of blank page.
Old 05-07-2010, 08:55 AM How to show parse errors instead of blank page.
Skilled Talker

Posts: 50
Trades: 0
Hi,

Is it possible to show parse errors on the screen instead of a blank page?

I have this code at the top of the page but it doesn't show the parse errors.

Code:
ini_set('display_errors',1);
error_reporting(E_ALL);
Thanks in advance

Wayne.
HullBorn is online now
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 05-07-2010, 09:12 AM Re: How to show parse errors instead of blank page.
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
If display_errors is disabled in your php.ini you won't be able to enable it at runtime with ini_set if your script has a fatal error. From the doc:
Quote:
Note: Although display_errors may be set at runtime (with ini_set()), it won't have any affect if the script has fatal errors. This is because the desired runtime action does not get executed.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Reply     « Reply to How to show parse errors instead of blank page.
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.16284 seconds with 12 queries