Jump to content


Photo

HELP PLEASE


  • Please log in to reply
5 replies to this topic

#1 ruzanna

ruzanna
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 08 February 2006 - 09:08 AM

Hello All,

Can you tell me how can I change via .htaccess file error_reporting value for particular directory in my site?

Thanks.

#2 Kris

Kris
  • Staff Alumni
  • Advanced Member
  • 2,755 posts
  • LocationThe Internet

Posted 08 February 2006 - 09:13 AM

This post is more suited to our Apache forum, moved.

#3 Koobi

Koobi
  • Staff Alumni
  • Advanced Member
  • 419 posts
  • LocationColombo, Sri Lanka | South Asia

Posted 14 February 2006 - 10:09 PM

i suppose this would work:



php_flag error_reporting 2047

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]

#4 ruzanna

ruzanna
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 15 February 2006 - 01:58 PM

[!--quoteo(post=345853:date=Feb 14 2006, 05:09 PM:name=Bane)--][div class=\'quotetop\']QUOTE(Bane @ Feb 14 2006, 05:09 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
i suppose this would work:
php_flag error_reporting 2047

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.htaccess

php_flag display_errors On
php_value error_reporting 2047

but there is no any affect. Have you idea why it's so?

I hope you will answer again.
Thanks.


#5 Koobi

Koobi
  • Staff Alumni
  • Advanced Member
  • 419 posts
  • LocationColombo, Sri Lanka | South Asia

Posted 15 February 2006 - 07:11 PM

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":

php_flag display_errors 1
php_value error_reporting 2047

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.

#6 ruzanna

ruzanna
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 21 February 2006 - 08:23 AM

Hi Bane,

sorry for delay and thanks for help, problem was in hosting I had no permission for change php values.

Greetings.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users