On 21 Feb 2005 09:56:46 -0800, news.DeleteThis@celticbear.com wrote:
>My Web host apepars to not allow exec() and system(), as a line in my
>script:
>
>system("convert -scale 100x100 $uploadfile $toimage");
>
>gives the error:
>
>"Warning: system() has been disabled for security reasons"
>
>Is there some other way to use ImageMagik (or is it GhostScript?)'s
>"convert" command in PHP that may be safer and generally allowed by Web
>hosts?
If system() and exec() are disabled, presumably proc_open() is too, so you're
out of luck. There's an ImageMagick PHP extension in PECL, you could ask your
host if they'd install that (but they probably won't!).
<a rel="nofollow" style='text-decoration: none;' href="http://pecl.php.net/package/imagick" target="_blank">http://pecl.php.net/package/imagick</a>
(GhostScript is a Postscript processor - ImageMagick is the image processor)
--
Andy Hassall / / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
>> Stay informed about: alternates to system() and exec() in order to use ImageMag..