strange prob with convert and php as frontend
Posted: 2008-12-20T17:44:24-07:00
I'm in freebsd 7.0, imagemagick 6.4.7, php 5.2.8.
If I execute below very simple php script (named 'convert.php') from web-base: http://localhost/convert.php, it not converted image at all,
but if I execute from shell: 'php convert.php', it converted original image for me.
Very strange. Could anyone tell me where's I'm wrong?
Below is my simple php script:
<?php
$im_path="/usr/local/bin";
system("$im_path/convert image.JPG hello.jpg ");
?>
If I execute below very simple php script (named 'convert.php') from web-base: http://localhost/convert.php, it not converted image at all,
but if I execute from shell: 'php convert.php', it converted original image for me.
Very strange. Could anyone tell me where's I'm wrong?
Below is my simple php script:
<?php
$im_path="/usr/local/bin";
system("$im_path/convert image.JPG hello.jpg ");
?>