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

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

WBOY
Release: 2016-06-13 12:44:13
Original
1806 people have browsed it

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

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






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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template