0

I tend to use one of a programms that i installed on my vps server ,

the script which i made is work perfectly on my localhost , but it doesn't work on vps.

Here what i tried

$r = shell_exec('wkhtmltopdf http://monsite.ma/generate/15 /var/www/vhosts/monsite.ma/qr-u15.pdf');
// $r contain a null variable

Full path command also not working .

i have centos6.5 with php5.5 installed on my vps too .

and Windows7 with php5.5 on my localhost

3
  • duplicate: stackoverflow.com/questions/20124327/… Commented Aug 11, 2014 at 12:06
  • What happens when you run wkhtmltopdf http://monsite.ma/generate/15 /var/www/vhosts/monsite.ma/qr-u15.pdf from command line without php? Commented Aug 11, 2014 at 12:06
  • Is shell_exec returning NULL ? Commented Aug 11, 2014 at 12:07

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.