sh //a.php <?php $f = fopen('file.txt','w'); flock($f, LOCK_EX); sleep(100000); ?> //b.php <?php include('file.txt'); ?> //file.txt <?php echo '1'; ?>