I am trying to make a pdf file with wkhtmltopdf when I pass url www.example.com pdf is generating or www.example.com?id=1
but when I try to put another parameter command execution is not working
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
The &
is causing your command to fail as it has special meaning in shell. Use escapeshellarg()
to escape those characters first.