"Neil Johnson" on  wrote...
| 
| 
| Found fix for problem below:
| 
| The solution was to include the full path of the
| covert program in the exec statement so:
| exec("/usr/local/bin/convert -geometry 200x100!
| -quality 100 uploads/my.jpg uploads/my.jpg");
| 
| I have never had to do this before on other
| servers so my guess is that there is some kind of
| environment variable telling php (apache or
| whatever) that convert is located in
| /usr/local/bin or any other program for that
| matter i.e. composite
| 
The other way to FIX this is to set the PATH correctly
in the web server startup script!!!!

But this is something that very few system adminstrators do,
as it causes a 'unexpected error' when they upgrade later.

PHP doesn't help but dis-allowing the PHP script to set the
command PATH (and LD_LIBRARY_PATH) in a global way at the start
of that script, where the script owner can easilly manage it!

  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
      "Bad spellers of the world, UNTIE!"
                   -- Jason Sicotte <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to