Jump to content

Archived

This topic is now archived and is closed to further replies.

ruzanna

HELP PLEASE

Recommended Posts

Hello All,

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

Thanks.

Share this post


Link to post
Share on other sites
This post is more suited to our Apache forum, moved.

Share this post


Link to post
Share on other sites
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]

Share this post


Link to post
Share on other sites
[!--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.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.

Share this post


Link to post
Share on other sites
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 1
php_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.

Share this post


Link to post
Share on other sites
Hi Bane,

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

Greetings.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.