pvtest.php
307 Bytes
<?php
require_once dirname(__FILE__) . '/config.php';
require_once LIBDIR . 'mutualExclusion.php';
//session_start ();
$lock = acquireLock ('lock/lock', '1');
$handle = fopen ('lock/lock1.lck', 'r');
print fgets ($handle);
fclose ($handle);
echo "Lock bekommen\n";
sleep (1);
releaseLock ($lock);
?>