<?php if ($file==1) { header("location: file.exe"); $file=fopen("file.txt","a+"); flock($file,LOCK_EX); $count=fread($file,100); $count++; ftruncate($file,0); fwrite($file,$count); flock($file,LOCK_UN); fclose($file); } ?>