On Tue, 28 Jul 2009 18:19:51 +0200
[email protected] wrote:

| Dear list,
| 
| I have a Apple Mac Mini that I use as a development webserver.
| 
| I have installed Apache webserver, FTP server, PHP and MySQL support.
| There is only one thing I have left, ImageMagick.
| 
| ImageMagick works perfect from the terminal in Mac OS X Leopard, but I
| can't get it to work from my PHP code.
| 
| This is the code I'm running.
| 
| <?php
| 
| $exec = "convert mac_mini.jpg mac_mini.png";
| exec($exec, $yaks);
| 
| ?>
| 
| Can someone please tell me what the problem is?
| 
| I will be very greatful if someone can help me with this. I'm about a
| month behind schedule because of this.
| 
| Regards
| Benny
| 
The PHP may will run the imagemagick in a different environment.

That means the PATH environment variable to allow it to find the
"convert" command may be wrong. Library path may be wrong

Directly may not be writable by the user PHP runs as, typically
"apahche" or some other special 'low permission' user.

See IM Examples, APIs, PHP
   http://www.imagemagick.org/Usage/api/#php

And you can go on to Anthony Bennet's (aka Bonzo), RubbleWeb pages
which is devoted to using Imagemagick commands from PHP environment.
   http://www.rubblewebs.co.uk/imagemagick


  Anthony Thyssen ( System Programmer )    <[email protected]>
 -----------------------------------------------------------------------------
    Kite(n):  An offering to the wind gods proffered on a line that
       they find sufficiently attractive to accept when it is dangled
       in front of them.          -- Anne Sloboda, c/o <[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