Web Hosting Talk







View Full Version : exec() disabled


orbitz
04-24-2008, 02:48 PM
If php.ini has exec() disable, can I still use cgi script to use this function. example calling this:

"gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=Merged.pdf -dBATCH 1.pdf 2.pdf 3.pdf"

(ghostscript is used to merge 2 pdf files)

Thanks!

dhelfman
04-26-2008, 09:44 PM
There are a number of other functions PHP has with similar functionality to exec(). If only exec() is disabled, you could try: system(), popen(), passthru(), shell_exec(), etc.