I'm trying to setup a PHP script to create a file if it does not already exist.
Example:
That's the first, and simplest one I've tried. I've tried multiple scripts, but none are creating the file I want.
I'm developing this site under Mac OS X, not OS X server.
Example:
PHP:
$ourFileName = "testFile.txt";
$ourFileHandle = fopen($ourFileName, 'w') or die("can't open file");
fclose($ourFileHandle);
That's the first, and simplest one I've tried. I've tried multiple scripts, but none are creating the file I want.
I'm developing this site under Mac OS X, not OS X server.