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
Error handling in Dev vs. Production
Old 08-21-2007, 11:06 AM Error handling in Dev vs. Production
Novice Talker

Posts: 13
Trades: 0
Hello,

We're getting a dev site set up for testing and development, and I would like to have errors on.

The dev site is a domain within our server, as is our production site, and at the server level, the error display is set to OFF in php.ini. I understand this is a good thing for the production site.

However, is there a way I can override this for just the domain of the dev site?

Thanks!
greencampuscm is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-21-2007, 12:23 PM Re: Error handling in Dev vs. Production
bas
Super Talker

Posts: 108
Name: Bas
Trades: 0
You can override this setting with a .htaccess file (if the use of .htaccess isn’t disabled in php.ini).
Put this code in a file named .htaccess and put it in the main directory of your particular domain where you want errors to be shown.
Code:
php_flag display_errors on

Last edited by bas; 08-21-2007 at 12:25 PM.. Reason: on ipv off :P
bas is offline
Reply With Quote
View Public Profile
 
Old 08-28-2007, 01:13 PM Re: Error handling in Dev vs. Production
Novice Talker

Posts: 13
Trades: 0
bas, thanks so much for the response. I'll give that a try.
greencampuscm is offline
Reply With Quote
View Public Profile
 
Old 08-28-2007, 01:22 PM Re: Error handling in Dev vs. Production
dansgalaxy's Avatar
Defies a Status

Posts: 6,521
Name: Dan
Location: Swindon
Trades: 0
also the php functions where u can set it, (i cant remember what it is) but i have it on my script and it gets the error to show from my Db so i can change it from my control panel.
__________________
Discounted Web Hosting With XDnet!
>> Get 25% of hosting~ Promo: Webmaster-talk <<

Please login or register to view this content. Registration is FREE
dansgalaxy is offline
Reply With Quote
View Public Profile Visit dansgalaxy's homepage!
 
Reply     « Reply to Error handling in Dev vs. Production
 

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.13896 seconds with 12 queries