Help, Problem with fputs() !!!
Posted: Fri Nov 29, 2002 7:54 pm
hi guys, this problem is realy ... stupid.. i dont know whats wrong....
$fp=fopen($filename, "wb");
flock($fp,1);
fputs($fp, $variable, strlen($variable));
flock($fp,3);
fclose($fp);
the script should write the $variable in the file with the $filename...
o.k thats simple.. and it works wonderfull... BUT now comes the problem...
my $variable is now 7400 chars long...
and all what it now does, is just emptiingt the file, just cleaning out all data... without putting anything in...
its realy.. crazy...
i am running that script on a win32 machine with apache an php4 ...
i am realy burn out, after trying 3 hours to get this $... working
thanks for all help
Bugworm
$fp=fopen($filename, "wb");
flock($fp,1);
fputs($fp, $variable, strlen($variable));
flock($fp,3);
fclose($fp);
the script should write the $variable in the file with the $filename...
o.k thats simple.. and it works wonderfull... BUT now comes the problem...
my $variable is now 7400 chars long...
and all what it now does, is just emptiingt the file, just cleaning out all data... without putting anything in...
its realy.. crazy...
i am running that script on a win32 machine with apache an php4 ...
i am realy burn out, after trying 3 hours to get this $... working
thanks for all help
Bugworm