ruzanna Posted February 8, 2006 Share Posted February 8, 2006 Hello All,Can you tell me how can I change via .htaccess file error_reporting value for particular directory in my site? Thanks. Quote Link to comment Share on other sites More sharing options...
zq29 Posted February 8, 2006 Share Posted February 8, 2006 This post is more suited to our Apache forum, moved. Quote Link to comment Share on other sites More sharing options...
Koobi Posted February 14, 2006 Share Posted February 14, 2006 i suppose this would work:[code]php_flag error_reporting 2047[/code]name that file .htaccess and place it in your directory.error_reporting > [a href=\"http://www.php.net/manual/en/ref.errorfunc.php#errorfunc.constants\" target=\"_blank\"]predefined constants[/a] Quote Link to comment Share on other sites More sharing options...
ruzanna Posted February 15, 2006 Author Share Posted February 15, 2006 [!--quoteo(post=345853:date=Feb 14 2006, 05:09 PM:name=Bane)--][div class=\'quotetop\']QUOTE(Bane @ Feb 14 2006, 05:09 PM) [snapback]345853[/snapback][/div][div class=\'quotemain\'][!--quotec--]i suppose this would work:[code]php_flag error_reporting 2047[/code]name that file .htaccess and place it in your directory.error_reporting > [a href=\"http://www.php.net/manual/en/ref.errorfunc.php#errorfunc.constants\" target=\"_blank\"]predefined constants[/a][/quote]Thanks for answer Bane.I'm doing this in.htaccessphp_flag display_errors Onphp_value error_reporting 2047but there is no any affect. Have you idea why it's so?I hope you will answer again.Thanks. Quote Link to comment Share on other sites More sharing options...
Koobi Posted February 15, 2006 Share Posted February 15, 2006 Hi,to tell you honestly, i'm a bit rusty on my PHP. this is the first time i'm using it after a period of almost 3-4 months with no PHP whatsoever.but from what i can recall, what you posted should work. try using the integer 1 instead of the string "On":[code]php_flag display_errors 1php_value error_reporting 2047[/code]also, is your apache configured to allow .htaccess per directory? because that feature can be turned off. you might want to check that up.and try this using ini_set() as well to check if the errors show up at all before you proceed. Quote Link to comment Share on other sites More sharing options...
ruzanna Posted February 21, 2006 Author Share Posted February 21, 2006 Hi Bane,sorry for delay and thanks for help, problem was in hosting I had no permission for change php values.Greetings. Quote Link to comment 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.