How I can execute those two command line via php:
wkhtmltopdf www.google.com gg.pdf
&
oofice -headless -nologo -pt cup-pdf my.doc
they both return a pdf file and download into my home directory.
I want to know the way to execute those command from my html page via php.
Thanks.
You should take a look at the System program execution section of the manual : PHP provides several functions that can be used to launch external commands / programs, including :
exec()
-- which can store the output of the command in an arrayshell_exec()
-- which returns, as a string, the output of the commandsystem()
-- which echoes the output of the command