touch -- Sets access and modification time of file
file_exists -- Checks whether a file exists
意思是
文件是否存在或者設置文件的訪問修改時間為當前時間是否成功
file_exists -- Checks whether a file exists
意思是
文件是否存在或者設置文件的訪問修改時間為當前時間是否成功
解决方案 »
- extension_dir无论怎么设置都是c:\php5
- 在写入数据库时出现#1064错误是什么原因 菜鸟问题
- 求教:用jpgraph生成的含有X和Y轴的折线图,怎样修改X轴默认显示的坐标数值?
- 请问用setcookie()为什么提示出错了?
- 请问如何判断当前选择(选择日历js)/输入的日期是星期几啊??请指教!谢谢!
- 大家一定要看,要不然追悔莫及喔!!(看了就有分)
- 打的开php文件,却打不开html文件??
- 如何获得上网时, 上网的IP? (不是"remote_addr", 也不是"server_addr")
- 怎样修改文件的内容呢?例如fopen("count.xxx","r+"),服务器提示我没有权限,怎么办呢?
- 寻找调查投票程序,66分
- file_exists($fn) || touch($fn);
- php调用com的问题,请进来看看,感谢!(急)
|| means "or".so it means if ether function return a true value.the expression must be true
int touch(string filename , int time)
设置文件filename的最后修改时间time,如果time没给出,系统使用当前时间,如果filename不存在,将新建该文件,返回值为ture/falseint file_exists(string filename)
检验文件filename是否存在,其中filename包括目录路径和文件名和文件后缀,返回值为ture/false