Re: [PHP] php not reading file properly

2008-08-25 Thread sean greenslade
Yeah, well, I don't want everyone to view my logs. Only me. So it won't add any unnecessary load to my server. On Mon, Aug 25, 2008 at 8:04 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: > sean greenslade schreef: > >> Well, if you really want to know, I have to go to many places that do not >> have

Re: [PHP] php not reading file properly

2008-08-25 Thread Jochem Maas
sean greenslade schreef: Well, if you really want to know, I have to go to many places that do not have internet access. For those places, I have a PDA. I have Avantgo software on the PDA, and I wanted it to be able to store a copy of the log file to review it when I do not have internet access.

Re: [PHP] php not reading file properly

2008-08-24 Thread sean greenslade
Well, if you really want to know, I have to go to many places that do not have internet access. For those places, I have a PDA. I have Avantgo software on the PDA, and I wanted it to be able to store a copy of the log file to review it when I do not have internet access. All I needed was a webpage

Re: [PHP] php not reading file properly

2008-08-24 Thread Jochem Maas
sean greenslade schreef: I have this snippet of code that is supposed to read the apache access log and display it: For some reason, it displays the logs when I run the php file thru terminal: php -f /web/apache.php but not when I access it thru the web. when I browse to it, it just displays th

Re: [PHP] php not reading file properly

2008-08-20 Thread Steve Holmes
On Wed, Aug 20, 2008 at 3:15 PM, sean greenslade <[EMAIL PROTECTED]>wrote: > I have this snippet of code that is supposed to read the apache access log > and display it: > $myFile = "/var/log/httpd/access_log"; >$fh = fopen($myFile, 'r'); >$theData = fread($fh, filesize($myFile)); >