Michiel
09-22-2002, 01:13 PM
Hi,
I've recently been working on a stats-script that uses .dat files for storing information. All the functions work correctly: the visitors are registered correctly. The problem is that my 'view-stats'-functions don't work because the file can't be opened. The seccond problem is that I can't edit or delete the datafile from my server using ws-ftp. So I think the problem lies in the fact a directory and a data-file are created when the script runs for the first time. I guess something goes wrong here... This is the specific code:
$dir = date("Y");
if (!is_dir($dir)) mkdir("$dir", 0775);
Is there anything wrong with these lines? Or does anybody have a clue why I can't edit/ delete the .dat file?
Thanx Michiel
I've recently been working on a stats-script that uses .dat files for storing information. All the functions work correctly: the visitors are registered correctly. The problem is that my 'view-stats'-functions don't work because the file can't be opened. The seccond problem is that I can't edit or delete the datafile from my server using ws-ftp. So I think the problem lies in the fact a directory and a data-file are created when the script runs for the first time. I guess something goes wrong here... This is the specific code:
$dir = date("Y");
if (!is_dir($dir)) mkdir("$dir", 0775);
Is there anything wrong with these lines? Or does anybody have a clue why I can't edit/ delete the .dat file?
Thanx Michiel