I'm trying to run CutyCapt on my CentOS server, to take websites screenshots!
The problem is that the command "/downloads/cutycapt/CutyCapt/CutyCapt --url=http://www.google.dk --out=/downloads/cutycapt/CutyCapt/test2.png --min-width=800 --min-height=600" works when I run it from command line!
But if I try to run it, inside the PHP exec function, nothing happen, and it also returns nothing.
UPDATED:
The command bellow works on shell.
rm -rf /tmp/.X4-lock&Xvfb :1 -fp /usr/share/X11/fonts/misc -screen 0 1024x768x24 &export DISPLAY=localhost:1.0&CutyCapt --url=http://www.scrapee.net --out=/downloads/cutycapt/CutyCapt/test4.png
but the code bellow donot work on php
exec('rm -rf /tmp/.X4-lock&Xvfb :1 -fp /usr/share/X11/fonts/misc -screen 0 1024x768x24 &export DISPLAY=localhost:1.0&CutyCapt --url=http://www.scrapee.net --out=/downloads/cutycapt/CutyCapt/test4.png',$out);
Safe mode is off. So I really don't know what I'm doing wrong.
Could someone help-me please? Thank you.