path problems
Posted: 2010-04-29T09:36:00-07:00
got around my previous probs but have come up against another one!
I'm executing via php using shell_exec()
if I run from php....
I get a lovely png in the same directory as the pdf, which is cool
what I want is the converted file to be saved elsewhere, if I run the following directly in a terminal it works fine, saves the png elsewhere as expected:
but if run that through php like this
server is running fedora 8 with the latest IM and ghostscript
the browser spins for a bit as though it is doing the conversion, but there is no file saved in the destination folder
server is running fedora 8 with elatest IM and ghostscript installed
but when I run the above locally on my little ubuntu box thats sat on my desk it runs perfectly, but not on the fedora remote server
I'm executing via php using shell_exec()
if I run
Code: Select all
shell_exec(convert -density 175 myfile.pdf myfile.png)
I get a lovely png in the same directory as the pdf, which is cool
what I want is the converted file to be saved elsewhere, if I run the following directly in a terminal it works fine, saves the png elsewhere as expected:
Code: Select all
convert -density 175 /home/kelldap/public_html/PDF/myfile.pdf /home/kelldap/public_html/appro_png/myfile.png
but if run that through php like this
Code: Select all
shell_exec(convert -density 175 /home/kelldap/public_html/PDF/myfile.pdf /home/kelldap/public_html/appro_png/myfile.png)
the browser spins for a bit as though it is doing the conversion, but there is no file saved in the destination folder
server is running fedora 8 with elatest IM and ghostscript installed
but when I run the above locally on my little ubuntu box thats sat on my desk it runs perfectly, but not on the fedora remote server