i am trying to make a pdf file with wkhtmltopdf when i pass url http://www.example.com pdf is generating or http://www.example.com?id=1
but when i try to put another parameter command execution is not working
http://www.example.com?id=1&type=u
shell_exec(“c:\pdf\wkhtmltopdf.exe
http://localhost/test/index.php?id=1&typee=abc
test.pdf “);
i try to use it via command line to but its not working there also
thanks for help
The
&is causing your command to fail as it has special meaning in shell. Useescapeshellarg()to escape those characters first.