Hi
I am trying to read my squid log files so I can parse some info.
Nothing I seem to do works. I have looked at permissions php.ini httpd.conf
and such but I can't figure out how to let php do this.
Does any one have any suggestions?
here is the code that I am using.
<?php
$handle = fopen("/var/log/squid/squid.out", "r");
if(!$handle) echo"can't open file";
if ( $handle )
{
while (!feof($handle))
{
$buffer = fgets($handle, 1024); // read each line from the file
$str= $buffer;
echo $str;
}
}
?>
I know it is a problem with not being able to read that directory but how
can I configure apache2 and php to allow this?
thanks