0

我正在制作多个电子商务网站。所有站点都连接到中央管理站点以获取数据,并使用 WHM 从单个服务器工作。

WHM账户名称:mercan

/home/mercan/public_html/img.php内容:

<?php
$image=imagecreatefromjpeg('/home/mercan/public_html/images/testimage.jpg');
header('Content-Type: image/jpeg');
imagejpeg($image);
//ok no problem
?>

WHM账户名:苹果

/home/mercan/public_html/img.php内容:

<?php
$image=imagecreatefromjpeg('/home/apple/public_html/images/otherimage.jpg');
header('Content-Type: image/jpeg');
imagejpeg($image);
// ok no problem
?>

WHM账户名:kivi

/home/kivi/public_html/imgkivi.php内容:

<?php
$image=imagecreatefromjpeg('/home/apple/public_html/images/otherimage.jpg');
// php file in kivi account. 
header('Content-Type: image/jpeg');
imagejpeg($image);
// error not acces this folder.
// i neeed acces other(apple) account folder or files..
?>

如何$image=imagecreatefromjpeg('/home/apple/public_html/images/otherimage.jpg');以 root 访问权限运行?

4

0 回答 0