On Tue, 13 Nov 2001 03:14, PACKER, Steffan wrote:
> I am trying to log particular information in an access log and I need
> it to be used on several pages all in different directories, I would
> like the actual log to be stored in a directory called data in the root
> directory of my web page. I using an include() on each page where I
> would like the info logged.
> I am using:
>       $log_fp = fopen("../data/access_log.txt", "a",1);
> with the use_include_path set to 1.
>
> My problem is that a new file is being created in each directory that
> the logging.inc file is added to.
>
> Can anyone help?
> Steffan

../data/access_log.txt seems to be a relative address to me, pointing to 
the directory data which hangs off the parent of the current directory.

Why not give full path information, so there is no ambiguity? Or use 
$DOCUMENT_ROOT for portability?

-- 
David Robley      Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES      Flinders University, SOUTH AUSTRALIA  

   Do the joke. Get the laugh. Move on.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to