Page 1 of 1

Re: PHP EXECUTION STOPPED

Posted: 2010-08-08T12:13:20-07:00
by fmw42
post your PHP command

Re: PHP EXECUTION STOPPED

Posted: 2010-08-09T09:01:45-07:00
by fmw42
exec("/usr/local/ImageMagick/bin/convert uploads/filename null: filename -geometry +0+0 -layers Composite filename ")
I don't understand the purpose of this command -- it seems like it should do nothing as your are compositing a null: image at no offests (-geometry +0+0).

Can you explain what you are trying to do?

Are you sure that usr/local/ImageMagick/bin/convert is the proper path to IM

does this give you a reply?

exec("usr/local/ImageMagick/bin/convert -version")

if not try

system("which convert")

or

system("type convert")

to get the full path to convert

With regard to email replies, go to Control Panel (see link in upper left corner of window), Board Preferences, Edit Posting Defaults and check the radio button for "Notify me upon replies by default". OR just check the same checkbox (Options) at the bottom of your posting.

Re: PHP EXECUTION STOPPED

Posted: 2010-08-09T09:13:18-07:00
by Bonzo
As fmw42 says you comand looks a little strange; dose Imagemagick work at all on simple comands?

To display any IM errors try:

Code: Select all

<?php
$array=array();
echo "<pre>";
exec("/usr/local/ImageMagick/bin/convert uploads/filename null: filename -geometry +0+0 -layers Composite filename 2>&1", $array); 
echo "<br>".print_r($array)."<br>"; 
echo "</pre>";
?> 
Out of interest are you actualy using filename or do you have a value in there ?