I want use webscreencapture to make a web screenshot. if I save the below code in a screenshot.bat, and then click it, it can catch the two web screenshots.
webscreencapture.exe http://www.youtube.com/watch?v=SLyG0mUnw4A e:\www\111\1.jpg
webscreencapture.exe http://www.youtube.com/watch?v=izUxI-k01CU e:\www\111\2.jpg
Now I want to convert .bat code to .php code. I use:
<?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);
?>
It just gets the second web screenshot. It doesn’t seem to run the first command. Where’s the problem? Thanks.
By the way, webscreencapture can not set a time delay, and can not screenshot a youtube movie. Can anyone recommend something that can?
You don’t execute your first
$cmd. You just replace it after sleeping for a second.