我上传了一个gif到我的网站。被上传完成后,我可以看到这个错误:警告:出于安全考虑,`exec()`已被禁用
Warning: exec() has been disabled for security reasons in /data/web/virtuals/28995/virtual/www/include/functions/main.php on line 306
Fatal error: Call to undefined function execute() in /data/web/virtuals/28995/virtual/www/include/functions/main.php on line 309
这是从main.php
$owh = $width_old."x".$height_old;
$nwh = $final_width."x".$final_height;
if(!file_exists($temppic))
{
$runinbg = "convert ".$file." -coalesce ".$temppic;
$runconvert = execute("$runinbg");
}
$runinbg = "convert -size ".$owh." ".$temppic." -resize ".$nwh." ".$output;
$runconvert = execute("$runinbg");
return true;
一部分感谢您的帮助! :-)
哦:-(感谢您的帮助,我正在寻找新的主机:) – 2013-05-07 14:40:22
共享主机上几乎总是禁用'exec',因为这个功能太危险了。 – Jocelyn 2013-05-07 14:47:15