Using PDFCreator's Command Line Arguments in PHP exec() -
i have tried utilize zend framework pdf conversion in php cannot figure out how install it. found programme allows pdfs printed/converted via command line, thought exec() command in php run programme , convert file on server me.
the programme pdfcreator pdfforge.org , trying convert .doc files .pdf files. command line below works when running cmd.exe. however, when running php believe trying execute under user scheme , not working properly. (i did php exec('whoami') , came system.) changed user of apache opens admin business relationship , still have been unable work.
"c:\program files\pdfcreator\pdfcreator.exe" /optionsfile"c:\pdfcreator.ini" /pf"c:\test.doc"
any thoughts why cannot same behavior when running command using exec()?
thats because apache user , business relationship user should same, ex: windows user pedro, apache user should pedro...you shoul open services.msc , in session tab allow apache interact current desktop....in way, share same windows session , desktop....but shoud represent security risk , it's not recommended.
saludos.
php command-line
No comments:
Post a Comment