-----Original Message-----
From: Al [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 10, 2004 9:19 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Error logging problem


My site is on a virtual host and I'd like to log errors to a file while
I'm 
debugging.  Can't get it to work.

Here is the code at the top of my script:

>  ini_set("display_errors", "on");             //also tried "Off"
>  
>  ini_set("error_log", "/AutoSch/error.log");

This problem may be related to your path.
Try to user $_SERVER['DOCUMENT_ROOT']."/AutoSch/error.log"

AutoSch must be in your document root .



Zareef ahmed 


>  
>  $ini_array= ini_get_all();
>  
>  error_reporting(E_ALL ^ E_WARNING );
//On for debuging only
>  
>  print_r($ini_array);

Printing $ini_array shows my ini_set() statements are working; but, the
errors 
are not being appended to error.log.

I put a error.log in the folder, assuming the error handler needed one
to append 
to.

I don't want to turn on error logging for the whole site; just the
folder I'm 
working on.

Thanks....

-- 

------------------------------------------------------------------------
--
Zareef Ahmed :: A PHP develoepr in Delhi ( India )
Homepage :: http://www.zasaifi.com

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

Reply via email to