小编Ma *_* Jo的帖子

警告:出于安全原因,已禁用`exec()`

我上传了一个gif到我的网站.上传完成后,我可以看到此错误:

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
Run Code Online (Sandbox Code Playgroud)

这是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;
Run Code Online (Sandbox Code Playgroud)

谢谢你的帮助!:-)

php fatal-error

7
推荐指数
2
解决办法
3万
查看次数

标签 统计

fatal-error ×1

php ×1