Hi there,
I've got a very strange problem with a script I've written. I've got this function that has to read a certain .dat-file. First I check whether the file exists:
function ShowVisitMonth($table) {
if (file_exists("$table.dat")) $fp=file("$table.dat");
else die("Could not open $table.dat for reading!");
// etc. etc.
The function is called as follows:
ShowVisitMonth('08');
The problem is that the file 08.dat exists and is being read correctly. But when I try to open the file 09.dat the script dies 'Could not open $table.dat for reading!', even though the file in fact exists. I've tried renaming files etc. but nothing seems to work (and it's very frustrating :mad🙂. Is there anyone that know what is going on here??
Michiel