Re: Fwd: [PHP] php not reading file properly

2008-08-22 Thread sean greenslade
you've > >> already affected its position. Although, unlike a quark, you can create > a > >> copy of the log file ;) > >> > >> Ash > >> www.ashleysheridan.co.uk > >> > >> > >> -- Forwarded message -- &

Re: Fwd: [PHP] php not reading file properly

2008-08-22 Thread sean greenslade
een > offline, so I've not run into this problem before. > > Ash > www.ashleysheridan.co.uk > > > -- Forwarded message -- > From: "sean greenslade" <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Date: Fri, 22 Aug 2008 10:13:37 -0400

Re: Fwd: [PHP] php not reading file properly

2008-08-22 Thread Micah Gersten
sean greenslade" <[EMAIL PROTECTED]> >> To: php-general@lists.php.net >> Date: Fri, 22 Aug 2008 10:04:07 -0400 >> Subject: Re: Fwd: [PHP] php not reading file properly >> Yeah, I tried changing the perms, and that didn't work. I originally made >> the cr

Re: Fwd: [PHP] php not reading file properly

2008-08-22 Thread Ashley Sheridan
-- > From: "sean greenslade" <[EMAIL PROTECTED]> > To: php-general@lists.php.net > Date: Fri, 22 Aug 2008 10:04:07 -0400 > Subject: Re: Fwd: [PHP] php not reading file properly > Yeah, I tried changing the perms, and that didn't work. I originally made > the cron job put t

Re: Fwd: [PHP] php not reading file properly

2008-08-22 Thread sean greenslade
-- Forwarded message -- > From: "sean greenslade" <[EMAIL PROTECTED]> > To: php-general@lists.php.net > Date: Fri, 22 Aug 2008 10:04:07 -0400 > Subject: Re: Fwd: [PHP] php not reading file properly > Yeah, I tried changing the perms, and that didn't work. I

Re: Fwd: [PHP] php not reading file properly

2008-08-22 Thread Ashley Sheridan
gt; > To: php-general@lists.php.net > Date: Fri, 22 Aug 2008 02:31:47 -0400 > Subject: Re: Fwd: [PHP] php not reading file properly > So I made a cron jop to copy the log to the web folder every 5 minutes. > That > worked fine. It seems that php can't read the /var/log

Re: Fwd: [PHP] php not reading file properly

2008-08-22 Thread sean greenslade
> To: php-general@lists.php.net > Date: Fri, 22 Aug 2008 02:31:47 -0400 > Subject: Re: Fwd: [PHP] php not reading file properly > So I made a cron jop to copy the log to the web folder every 5 minutes. > That > worked fine. It seems that php can't read the /var/log/httpd fol

Re: Fwd: [PHP] php not reading file properly

2008-08-22 Thread Ashley Sheridan
d to it so that it doesn't interfere with Apache > accessing things. > > Ash > www.ashleysheridan.co.uk > > > -- Forwarded message -- > From: "sean greenslade" <[EMAIL PROTECTED]> > To: "Micah Gersten" <[EMAIL PROTECTED]> &

Re: Fwd: [PHP] php not reading file properly

2008-08-21 Thread sean greenslade
't interfere with Apache > accessing things. > > Ash > www.ashleysheridan.co.uk > > > -- Forwarded message -- > From: "sean greenslade" <[EMAIL PROTECTED]> > To: "Micah Gersten" <[EMAIL PROTECTED]> > Date: Wed, 20 Aug 2008 19

Re: Fwd: [PHP] php not reading file properly

2008-08-20 Thread Ashley Sheridan
Yeah, Apache is still running, but it is the access log you are trying to read, at the same time that you are Apache is being accessed. Accessing the log from the terminal will be fine while Apache is running, as it is unlikely it is being accessed at the very same instant. Are you able to access o

Re: Fwd: [PHP] php not reading file properly

2008-08-20 Thread sean greenslade
Ashley Sheridan wrote: >As it's the Apache access log that you are trying to read in, are you sure that Apache is >not in the process of writing to it as you are attempting to read from it? That might explain >why it seems to be empty, although I would have thought it would just append the d

Re: Fwd: [PHP] php not reading file properly

2008-08-20 Thread Ashley Sheridan
As it's the Apache access log that you are trying to read in, are you sure that Apache is not in the process of writing to it as you are attempting to read from it? That might explain why it seems to be empty, although I would have thought it would just append the data to the end of the file, rathe

Re: Fwd: [PHP] php not reading file properly

2008-08-20 Thread Micah Gersten
If the directory above it doesn't have execute privileges, it won't be able to read it either. Also, why not use the PHP5 function file_get_contents()? Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com sean greenslade wrote: > Thanks for the advice. I changed t

Fwd: [PHP] php not reading file properly

2008-08-20 Thread sean greenslade
Thanks for the advice. I changed the perms to 777 and changed the user and group to apache, but it still won't open. On Wed, Aug 20, 2008 at 3:35 PM, Robbert van Andel <[EMAIL PROTECTED]>wrote: > Does the user your PHP instance runs as have access to the file? It's > possible that it runs under