magickreadimage not working
Posted: 2009-02-03T23:12:26-07:00
Hello,
I have installed imagemagick and magickwand on my server. Phpinfo() shows that magickwand is installed -
The magickwand details are
MagickWand Extension Version 1.0.7
ImageMagick support enabled
ImageMagick version ImageMagick 6.4.8-10 2009-02-03 Q16 http://www.imagemagick.org
I am running a simple script that just reads the image from a folder and displays it back on the browser. But, when I run the script in the browser, only the url is printed on the page. On another script that I ran with some error handling. I got this error.
Warning: magickreadimage() [function.magickreadimage]: SAFE MODE Restriction in effect. The script whose uid is 500 is not allowed to access / owned by uid 0 in /var/www/vhosts/server/httpdocs/folder/pencil1.php on line 19
Fatal error: magickreadimage(): PHP cannot read /folder/pencil/1440.gif; possible php.ini restrictions in /var/www/vhosts/server/httpdocs/folder/pencil1.php on line 19
What is going wrong here. I have run the script successfully on my home computer(windows +apache).
Thanks,
Nishant
I have installed imagemagick and magickwand on my server. Phpinfo() shows that magickwand is installed -
The magickwand details are
MagickWand Extension Version 1.0.7
ImageMagick support enabled
ImageMagick version ImageMagick 6.4.8-10 2009-02-03 Q16 http://www.imagemagick.org
I am running a simple script that just reads the image from a folder and displays it back on the browser. But, when I run the script in the browser, only the url is printed on the page. On another script that I ran with some error handling. I got this error.
Warning: magickreadimage() [function.magickreadimage]: SAFE MODE Restriction in effect. The script whose uid is 500 is not allowed to access / owned by uid 0 in /var/www/vhosts/server/httpdocs/folder/pencil1.php on line 19
Fatal error: magickreadimage(): PHP cannot read /folder/pencil/1440.gif; possible php.ini restrictions in /var/www/vhosts/server/httpdocs/folder/pencil1.php on line 19
What is going wrong here. I have run the script successfully on my home computer(windows +apache).
Thanks,
Nishant