OMG. I had not set the permissions properly on the destination
directory. It works now.
Sorry for wasting the list's time, and thanks to Chris for your help.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Interesting. When I try this, $return_output gives an empty array, and
$return_code gives 1.
On Dec 31, 2008, at 3:38 PM, chris smith wrote:
Try using exec() so you get the whole return message, might be
something useful in there.
exec($command_line, $return_output, $return_code);
--
PH
> But from PHP, it only works beautifully if I specify complete pathnames for
> convert
/usr/local/imagemagick/ is not in apache's $PATH, so you need to
specify the full location.
> As soon as I try to convert a PDF
> image, it fails:
>
> $command_line = "/usr/local/imagemagick/bin/convert
> /v
My typo skipping the '/html/' in the pathname, the paths are correct
in my actual code.
On Dec 31, 2008, at 3:24 PM, Brian Dunning wrote:
/var/www/html/original.pdf /var/www/html/new.jpg
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
4 matches
Mail list logo