我上傳了一個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