Hi...
I don't know if I am posting this in the right place or not...
First of all... I am not that good at PHP... and I'm using PHP 4.2.1 on IIS of W2K Pro...
Having said that... I have a simple PHP script that writes a text file...
<?
$FileName = "./wwwData.txt";
$FilePointer = fopen ($FileName, "w");
$date = date("m.d.y");
$time = time();
fwrite ($FilePointer, $date . ' :: ' . $time);
fclose ($FilePointer);
?>
This works just fine when I try this at the dos command with php.exe(php writeTest.php)This creates wwwData.txt in the same directory and the content of the text file is '07.23.02 :: 1027452483'
When I call this PHP script in the browser (http://localHost/writeTest.php), it works fine too... I get the new wwwData.txt if the file doesn't exist... But the second time when I execute the script, it doesn't work... However, if I close the browser and open a new browser with the same code, it replaces whatever was in there... Why is that???
Same thing happens when I call this script in FMX... It works at the first time, but not at the second time it is called... What am I missing here???
Thank you for your time...