bilis_money Posted April 11, 2007 Share Posted April 11, 2007 My Web Hosting Administrator currently turned off the display_error now i can't see the error message in the script, is this correct? or is this very wrong. Ok below is the reason why he turn it off. There is security issue if we enable "display_errors" feature: ; - display_errors = Off [security] ; With this directive set to off, errors that occur during the execution of ; scripts will no longer be displayed as a part of the script output, and thus, ; will no longer be exposed to remote users. With some errors, the error message ; content may expose information about your script, web server, or database ; server that may be exploitable for hacking. Production sites should have this ; directive set to off. Is there another way to display the error message without turning on "display_error" option? Thank you very much in advance.... Quote Link to comment https://forums.phpfreaks.com/topic/46557-display_error-turned-off-is-this-correct/ Share on other sites More sharing options...
bilis_money Posted April 11, 2007 Author Share Posted April 11, 2007 ok the version is PHP 5.2.1 Quote Link to comment https://forums.phpfreaks.com/topic/46557-display_error-turned-off-is-this-correct/#findComment-226632 Share on other sites More sharing options...
rpadilla Posted April 11, 2007 Share Posted April 11, 2007 maybe try using error_reporting in your code, maybe will override it. error_reporting(E_ALL); Quote Link to comment https://forums.phpfreaks.com/topic/46557-display_error-turned-off-is-this-correct/#findComment-226635 Share on other sites More sharing options...
wildteen88 Posted April 11, 2007 Share Posted April 11, 2007 maybe try using error_reporting in your code, maybe will override it. error_reporting(E_ALL); error_reporting does not override display_errors don't know why people always recommend this. // had my moan On to the reply You should only turn display_errors on if you are in development stages of your script. If you are developing then you shouldn't really be in a live environment, IMO. You should do all development offline. You can install a package called WAMP to develop offline if you wish. This helps streamline development by by-passing uploading/downloading of files when you make changes and having to connect to net to test the changes. Installing wamp bypasses this as it is on your computer not the net. If have finished developing/testing and you are moving to a live environment then display_errors should be turned off and you should turn on a setting called log_errors instead. That way any errors that do occur are not shown (for security reasons) and you can see you errors by opening the log file you have setup. Most hosting companies do this. Quote Link to comment https://forums.phpfreaks.com/topic/46557-display_error-turned-off-is-this-correct/#findComment-226679 Share on other sites More sharing options...
bilis_money Posted April 11, 2007 Author Share Posted April 11, 2007 hi wildteen it's me askjames01 the eyeball avatar, remember me? bro can you explain to me further. You should only turn display_errors on if you are in development stages of your script. If you are developing then you shouldn't really be in a live environment, IMO. You should do all development offline. You can install a package called WAMP to develop offline if you wish. This helps streamline development by by-passing uploading/downloading of files when you make changes and having to connect to net to test the changes. Installing wamp bypasses this as it is on your computer not the net. What is WAMP? can you show me the link for WAMP? Any additional details please? I know there are many different meaning of WAMP, that's why i'm asking you. If have finished developing/testing and you are moving to a live environment then display_errors should be turned off and you should turn on a setting called log_errors instead. That way any errors that do occur are not shown (for security reasons) and you can see you errors by opening the log file you have setup. Most hosting companies do this. So what is this log_errors do? i mean can i get the copy of my error log file automatically? or do i need to ask them each time i need it? any additional info again? I really don't want to bother them every time i wanted it, just for log_errors, is there an automatic way? So you mean it is not necessary to turn on the "display_error" option, you mean it is 100% possible to develop the codes without turning it on? I would like to know also if www.phpfreaks.com "display_error" is turned off or on? long time no see wildteen. Thank you very much in advance. Quote Link to comment https://forums.phpfreaks.com/topic/46557-display_error-turned-off-is-this-correct/#findComment-226732 Share on other sites More sharing options...
wildteen88 Posted April 11, 2007 Share Posted April 11, 2007 What I mean by WAMP was WAMP Server - I sure you have heard of it before. If you have a website then more than likely your webshot has this already setup. Look in the control panel your webshots provides. Look for a section called or similar to logs, site logs etc. So you mean it is not necessary to turn on the "display_error" option, you mean it is 100% possible to develop the codes without turning it on? You can have it off it want by you'll only get a bank page if errors do occur especially if your script gets fatal errors/warnings. Quote Link to comment https://forums.phpfreaks.com/topic/46557-display_error-turned-off-is-this-correct/#findComment-226737 Share on other sites More sharing options...
neel_basu Posted April 11, 2007 Share Posted April 11, 2007 XAMPPIts good and easy Quote Link to comment https://forums.phpfreaks.com/topic/46557-display_error-turned-off-is-this-correct/#findComment-227081 Share on other sites More sharing options...
wildteen88 Posted April 11, 2007 Share Posted April 11, 2007 XAMPPIts good and easy and bulky/bloated. Quote Link to comment https://forums.phpfreaks.com/topic/46557-display_error-turned-off-is-this-correct/#findComment-227096 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.