Home >Backend Development >PHP Tutorial > file_exists一直不存在,该怎么解决

file_exists一直不存在,该怎么解决

WBOY
WBOYOriginal
2016-06-13 12:44:131816browse

file_exists一直不存在
用is_file也不存在

$path = "http://localhost/IMAGES_951234567/1372.jpg";
if(is_file($path)){
echo "存在";
}else{
echo "不存在";
}
一直显示不存在
我在浏览器上打这个地址,图片就出来了
另外说一下,我伪静态了地址






肿么办~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn