Greetings all,
I'm completely stumped...so I'd like to run this issue by you guys (and gals!).
I have encountered an odd issue, and I have no idea why this is doing what it's doing.
When I execute the following code, all by itself, in an "index.php" file (with no other files around...completely isolated!)
I get a result of "testtest"
$log_file = 'all.txt';
$handle = fopen($log_file, 'a');
fwrite($handle, 'test');
fclose($handle);
Note: I delete the file each time I execute the script (in a browser). I am also the only one running this script.
I've tried running on PHP 5.2.x and PHP 5.3.x
I have also tried on my machine as well as a separate, remote machine.
Is the script running twice?
If so, what's causing it?
Any help is appreciated as always!
Ryan