Re: Fwd: [PHP] php not reading file properly
| From: | Ashley Sheridan | Date: | Wed, 20 Aug 2008 23:53:45 +0000 |
| Subject: | Re: Fwd: [PHP] php not reading file properly | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-278440@lists.php.net to get a copy of this message | ||
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 other files? Also, have you tried
copying the file to another temporary version from within PHP an
accessing that? If that doesn't work, try executing a Bash script that
copies it someplace. Make sure to run the script in the background, and
maybe add a sleep period to it so that it doesn't interfere with Apache
accessing things.
Ash
www.ashleysheridan.co.uk