php 文件 目录解决办法

WBOY
Release: 2016-06-13 10:11:37
Original
791 people have browsed it

php 文件 目录
我想 获得本地文件路径 以便操作

我记得在vc的 mfc 里面 有个指令 可以 生成一个 本地文件目录视图 然后选择以后“打开” 返回文件路径
 php 有这种 现成的 功能吗? 或者 谁有 相关 代码。。。

------解决方案--------------------
获得本地文件路径
可用js调用系统打开文件对话框(有安全提示)
也可利用 input type=file 控件

这都与 php 无关了
------解决方案--------------------
这么麻烦?建议楼主去看看手册中的全局函数,很有用的!
dirname(__FILE__)
出来的就是当前文件的绝对路径

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!