Re: [PHP] Need help with using htaccess to override php.ini error settings

2004-08-24 Thread John Holmes
From: Al [EMAIL PROTECTED]

I need to active php error level Warning and log the errors in a file 
for my whole Apache virtual website.  It is clear how to do everything 
on a script-by-script basis; but, I need to do it across the site. 
http://us2.php.net/manual/en/configuration.changes.php
php_value error_reporting E_WARNING
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Need help with using htaccess to override php.ini error settings

2004-08-24 Thread Al
Thanks, that has me started.
Per the documentation, error_reporting must use the bitmask values 
form.  And, that works great.

However, I can't get the errors to log in a special file.  They insist 
on being logged in the system's error log file. 

I've tried:
php_value error_log errors.txt
with and without the quotes, etc. 


John Holmes wrote:
From: Al [EMAIL PROTECTED]

I need to active php error level Warning and log the errors in a 
file for my whole Apache virtual website.  It is clear how to do 
everything on a script-by-script basis; but, I need to do it across 
the site. 

http://us2.php.net/manual/en/configuration.changes.php
php_value error_reporting E_WARNING
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Need help with using htaccess to override php.ini error settings

2004-08-24 Thread John Holmes
From: Al [EMAIL PROTECTED]
Per the documentation, error_reporting must use the bitmask values form. 
And, that works great.

However, I can't get the errors to log in a special file.  They insist on 
being logged in the system's error log file.
There is a log_errors setting and a error_log setting. Try setting the 
log_errors value.

http://us3.php.net/manual/en/ref.errorfunc.php#ini.log-errors
---John Holmes... 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Need help with using htaccess to override php.ini error settings

2004-08-24 Thread Jason Wong
On Tuesday 24 August 2004 23:15, John Holmes wrote:

 There is a log_errors setting and a error_log setting. Try setting the
 log_errors value.

To be absolutely clear, you need both, enable log_errors and specify 
error_log.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
She asked me, What's your sign?
I blinked and answered Neon,
I thought I'd blow her mind...
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Need help with using htaccess to override php.ini error settings

2004-08-24 Thread Al
The php.ini is already set to log errors and it works; but, they are 
appended to the system log.

Just for the heck of it I tried; but it doesn't work.  

php_value error_reporting 2047
php_value log_errors TRUE
php_value error_log ./errors.txt[and the full path string]
John Holmes wrote:
From: Al [EMAIL PROTECTED]
Per the documentation, error_reporting must use the bitmask values 
form. And, that works great.

However, I can't get the errors to log in a special file.  They 
insist on being logged in the system's error log file.

There is a log_errors setting and a error_log setting. Try setting 
the log_errors value.

http://us3.php.net/manual/en/ref.errorfunc.php#ini.log-errors
---John Holmes... 
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Need help with using htaccess to override php.ini error settings

2004-08-24 Thread Jason Wong
On Tuesday 24 August 2004 23:37, Al wrote:
 The php.ini is already set to log errors and it works; but, they are
 appended to the system log.

 Just for the heck of it I tried; but it doesn't work.

 php_value error_reporting 2047

 php_value log_errors TRUE

 php_value error_log ./errors.txt[and the full path string]

... Don't use php_value to set boolean values. ...

And you may have to specify an absolute path.

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
/*
People should have access to the data which you have about them.  There 
should
 be a process for them to challenge any inaccuracies.
-- Arthur Miller
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Need help with using htaccess to override php.ini error settings

2004-08-24 Thread Al
Here is what I having working so far:
php_value error_reporting 2# Just warnings, which is 
what I want

php_flag log_errors 1  #this turns logging on 
and off in the syslog

php_flag display_errors 1  #this turns error display at 
client's browser on/off

php_value error_log errors.txt#Doesn't work OR
php_value error_log  /home/jones/public_html/AutoSch/errors.txt  
#This doesn't work either.

Anyone know how to write the errors to a file?  The documentation says 
it should work. 



Jason Wong wrote:
On Tuesday 24 August 2004 23:37, Al wrote:
 

The php.ini is already set to log errors and it works; but, they are
appended to the system log.
Just for the heck of it I tried; but it doesn't work.
php_value error_reporting 2047
php_value log_errors TRUE
php_value error_log ./errors.txt[and the full path string]
   

... Don't use php_value to set boolean values. ...
And you may have to specify an absolute path.
 



Re: [PHP] Need help with using htaccess to override php.ini error settings

2004-08-24 Thread Al
Here is what I having working so far:
php_value error_reporting 2# Just warnings, which is 
what I want

php_flag log_errors 1  #this turns logging on 
and off in the syslog

php_flag display_errors 1  #this turns error display at 
client's browser on/off

php_value error_log errors.txt#Doesn't work OR
php_value error_log  /home/jones/public_html/AutoSch/errors.txt  
#This doesn't work either.

Anyone know how to write the errors to a file?  The documentation says 
it should work. 

Jason Wong wrote:
On Tuesday 24 August 2004 23:37, Al wrote:
 

The php.ini is already set to log errors and it works; but, they are
appended to the system log.
Just for the heck of it I tried; but it doesn't work.
php_value error_reporting 2047
php_value log_errors TRUE
php_value error_log ./errors.txt[and the full path string]
   

... Don't use php_value to set boolean values. ...
And you may have to specify an absolute path.
 



Re: [PHP] Need help with using htaccess to override php.ini error settings

2004-08-24 Thread Al
Here is what I having working so far:
php_value error_reporting 2# Just warnings, which is 
what I want

php_flag log_errors 1  #this turns logging on 
and off in the syslog

php_flag display_errors 1  #this turns error display at 
client's browser on/off

php_value error_log errors.txt#Doesn't work OR
php_value error_log  /home/jones/public_html/AutoSch/errors.txt  
#This doesn't work either.

Anyone know how to write the errors to a file?  The documentation says 
it should work. 

Jason Wong wrote:
On Tuesday 24 August 2004 23:37, Al wrote:
 

The php.ini is already set to log errors and it works; but, they are
appended to the system log.
Just for the heck of it I tried; but it doesn't work.
php_value error_reporting 2047
php_value log_errors TRUE
php_value error_log ./errors.txt[and the full path string]
   

... Don't use php_value to set boolean values. ...
And you may have to specify an absolute path.
 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Need help with using htaccess to override php.ini error settings

2004-08-24 Thread John Holmes
From: Al [EMAIL PROTECTED]
php_value error_log  /home/jones/public_html/AutoSch/errors.txt
#This doesn't work either.
Anyone know how to write the errors to a file?  The documentation says
it should work.
It should. What are the permissions on the above file? Does the apache/php 
user have permission to write to it?

---John Holmes... 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Need help with using htaccess to override php.ini error settings

2004-08-24 Thread Al
Everything is working, thanks to you and Jason.
The key was that I had to provide a seed file since error_log only 
appends messages to an existing file and doesn't create one if it does 
not exist.

Al
John Holmes wrote:
From: Al [EMAIL PROTECTED]
php_value error_log  /home/jones/public_html/AutoSch/errors.txt
#This doesn't work either.
Anyone know how to write the errors to a file?  The documentation says
it should work.

It should. What are the permissions on the above file? Does the 
apache/php user have permission to write to it?

---John Holmes... 
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php