Hi,
I'm trying to get a hitcounter to work and am having trouble with the file_exists() method failing.
Looking at the folders and files, I think everything is in place. Are there other reasons for file_exists()
to return FALSE? How do I find them and fix them.
Thanks,
Norm
URL: http://****.zxq.net/counters/counter.php?page=test
Returned to browser:
ERROR: Invalid log file!logs/test.txt
PHP code:
...
$logfile = 'logs/' . $page . '.txt';
...
if (file_exists($logfile))
{
...
}
else
{
die('ERROR: Invalid log file!' . $logfile);
}
When I look in the counters folder I see a logs folder. In the logs folder is a file: test.txt
