我无法从public_html/subdomain_name/testing.php访问public_html/ images /package/72/all_images中存在的图像
尝试使用"../“、"//”、"http://websitename/images/packages/72/all_images“等
$images = glob("../images/packages/72//*");
echo "<img src = "'.$images[0].'" >"需要检索图像src =“public_html/ image /packages/72/image_name”,但它显示src=(未知)
发布于 2019-08-16 00:16:00
首先检查你的图片目录
$dir = dirname(__FILE__); echo $dir;//where you want to find your images
如果您目录是正确的,
$images = glob($dir . '/*');
...https://stackoverflow.com/questions/57512379
复制相似问题