|
Posted by lorenzogordon on 03/22/06 13:37
Good question. Here's the function I'm using to write the file, the
function is returning true, which indicates that the file is being
closed properly. (I've used this function to perform the identical same
task on a Unix server, where it works fine, it's just on IIS I'm having
this problem):
function WriteFile($FileName, $TextString)
{
$File = fopen($FileName, "w");
if ($File == false)
{
return false;
} else {
if (flock($File, LOCK_EX))
{
fwrite($File, $TextString);
flock($File, LOCK_UN);
fclose($File);
return true;
} else {
return false;
}
}
}
Any other ides?
lorenzo.
Navigation:
[Reply to this message]
|