How to set $cmd overtime in php?
<pre><code>&lt;?php
$cmd = 'webscreencapture.exe http://www.youtube.com/watch?v=SLyG0mUnw4A e:\www\111\1.jpg';
sleep(1);
$cmd = 'webscreencapture.exe http://www.youtube.com/watch?v=izUxI-k01CU e:\www\111\1.jpg';
system($cmd);
?&gt;
</code></pre>

<p>The webscreencapture always run wrong for cycle screenshot one image. How to set a overtime command for $cmd that it can terminated 3 seconds after running the command.
Thanks.</p>
