Writing text to files on Windows
| From: | Robert Abbate | Date: | Thu, 21 Feb 2002 01:51:30 +0000 |
| Subject: | Writing text to files on Windows | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-12166@lists.php.net to get a copy of this message | ||
I seem to be having trouble being able to *write* text to a file within a
Windows server. Does anyone know what needs to be done to get this to work?
I've tried making sure that the direcories are set to the maximum
permissions (read/write/execute) to anyone. Still doesn't work.
I'm trying this:
$fp = fopen("test.txt", "w"); flock($fp, 1);
fputs($fp, "testing");
fclose($fp);
and I've tried "a", "a+", "w+", and "w" and no results.