Forum Moderators: coopster
//$todaylog = "/usr/local/home/httpd/logs/asite/access_log";
$todaylog = "c:/phpdev/www/folder/access_log.txt";
$referers = array();
$fd = fopen("$todaylog","r");
Warning: file(/usr/local/home/httpd/logs/mysite/access_log.txt): failed to open stream: No such file or directory in /mypath/script.php on line 8
I have tried both access_log and access_log.txt
Flummoxed, UK
/usr/local/home/httpd/logs/mysite/
doesn't look like a typical path.
maybe: /usr/local/home/mysite/httpd/logs/
Best to check with the host the actual path to the home directory and the logs directory. But normally the "mysite" directory would be further up the tree.