我想在我的服务器上检查我的图像,我有另一个子域来保存图像,但它们是通过 HTTPS 提供的
它只能在本地工作,但不能通过 HTTPS 远程工作,因为它总是打印“存在目录”。
$foto = "https://subdomain.example.com/images/" . $var . "/" . $var2. "/flayer";
if (file_exists($foto . ".jpg")) {
echo "HELLO WORL";
}
if (glob($foto . ".*")) {
if (file_exists($foto . ".jpg")) {
$ruta = "https://subdomain.example.com/images/". $var . "/" . $var2 . "/flayer.jpg";
}else{
echo "no exists";
}
}else{
echo "no exists on directory";
}