Welcome Guest, Not a member yet? Register   Sign In
fwrite() being screwy
#3

[eluser]Kepler[/eluser]
I would try:

Code:
$msg = 'TEST';
$fp = fopen('./logs/somefile.php','ab');

flock($fp, LOCK_EX);    
fwrite($fp, $msg);
fflush($fp); // in case the next statement fork()s, the cache will be written
flock($fp, LOCK_UN);
fclose($fp);


Messages In This Thread
fwrite() being screwy - by El Forum - 02-20-2010, 02:37 PM
fwrite() being screwy - by El Forum - 02-20-2010, 06:14 PM
fwrite() being screwy - by El Forum - 02-20-2010, 10:04 PM
fwrite() being screwy - by El Forum - 02-21-2010, 12:16 PM
fwrite() being screwy - by El Forum - 02-21-2010, 01:58 PM
fwrite() being screwy - by El Forum - 02-21-2010, 06:11 PM
fwrite() being screwy - by El Forum - 02-21-2010, 06:25 PM
fwrite() being screwy - by El Forum - 02-21-2010, 11:05 PM
fwrite() being screwy - by El Forum - 02-21-2010, 11:14 PM
fwrite() being screwy - by El Forum - 02-21-2010, 11:23 PM
fwrite() being screwy - by El Forum - 02-22-2010, 12:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB