Works on win98. Try your script without flock() - maybe a problem with ur
win server.
A+
Alain


-----Original Message-----
From: Robert Abbate [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 20, 2002 5:52 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Writing text to files on Windows


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.





--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to