I need to convert the html file into PDF, I am having command line for this process
C:\Program Files\Software602\Print2PDF/print2pdf.exe /iniconvert C:/Program Files/Apache Software Foundation/Apache2.2/htdocs/BPO/Praveen/OCT_08/html_files/file.ini
This is the command line to convert. But i dont know how to run this in php.
Please help me
you can use backticks: `
, you can use the exec
function, the shell_exec
function or the system
function.
be sure to correctly sanitize your params ( escapeshellargs
, escapeshellcmd
). all of the above will not work in php's safe mode though
您可以使用system
功能,但需要一个允许它的PHP版本:在安全模式下是不可能的。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.