How about: exec("PATH=$PATH:/usr/local/bin;export PATH;/usr/local/bin/convert test.pdf test.gif");
exec spawns inheret a rather restricted set of environmental variables. Ted > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf Of > [EMAIL PROTECTED] > Sent: Wednesday, January 19, 2005 9:54 PM > To: freebsd-questions@freebsd.org > Subject: gs: not found Image Magick > > > I can execute Image Magick convert PDF to jpg from shell with > no problem. If I try from PHP script, like this: > > <? > exec("/usr/local/bin/convert test.pdf test.gif"); > ?> > > I get the following errors: > > gs: not found > convert: Postscript delegate failed `test.pdf'. > convert: missing an image filename `norden.gif'. > > If I try to convert non-pdf files in php script, it works OK. > > Any help would be great! > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "[EMAIL PROTECTED]" > _______________________________________________ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"