【发布时间】:2011-08-23 10:10:46
【问题描述】:
我必须使用 file_exists 函数进行检查... 但是,如果我使用类似的东西
if (file_exists('http://horabola.com/imagens/dt_2845.jpg')) {
//code
}
没用……
我知道并且我确定文件“dt_2845.jpg”存在于文件夹“imagens”中...... 现在,我该如何检查?如何获取服务器的文件路径?
【问题讨论】:
-
这张图片是在您的服务器上还是在其他网站上?
-
HTTP Stream Wrappers 不支持
file_exists所属的 stat() 系列函数。请参阅Tip box in the manual 和提到的链接。