BlackHalt writeln (by me or from manual) PHP source Codes ...

chmod+usleep+chmod

<?php
// PHP fishka, kaa var ierobezhot atkaartotu vai vienlaiciigu ierakstiishanu failaa uz noteiktu laiku.
#error_reporting(0);
$fails='test.txt';
$rakstam=time();
if(!
file_exists($fails)){
touch($fails);
chmod($fails,0666);
}
if(
is_writable($fails)){
$fp=fopen($fails,'a+');
fwrite($fp,"$rakstam\n");
fclose($fp);
chmod($fails,0444);
}
# 10000 microseconds = 0.01 seconds
# 1000000 microseconds = 1 seconds
usleep(1000000);
chmod($fails,0666);
# failu buutu jaanolasa ar citu php skriptu
$skaits=count(file($fails));
echo 
$skaits;
clearstatcache();
?>