【问题标题】:how can i verified if a path exist or not [duplicate]我如何验证路径是否存在[重复]
【发布时间】:2014-09-03 14:29:54
【问题描述】:

我想测试像这样的路径 file:///c:/folder/texts/int.txt 是否存在,如果存在我打开它,否则回显“文件不存在”,有人有请问有什么办法吗?

【问题讨论】:

标签: javascript php jquery html


【解决方案1】:

很短的谷歌搜索显示http://php.net/manual/en/function.file-exists.php

bool file_exists ( string $filename )

【讨论】:

    猜你喜欢
    • 2017-09-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-12-26
    • 2020-06-21
    • 2010-12-09
    • 1970-01-01
    相关资源
    最近更新 更多