douwen4401 2012-09-06 07:29
浏览 50
已采纳

php文件上传与服务器目录访问

I am facing some typical problem from one of my project. A section in my project need a file up loader. The requirement is when an user clicks on the browse button, it will not only opens up the local directory, the already uploaded file directory need to accessed as well. In simple file uploader only the local directory can be accessed, I cannot able to fine any way out. If any one can help me in this issue, it will be great for me. Thanks in advance.

  • 写回答

1条回答 默认 最新

  • du3669 2012-09-06 07:45
    关注

    Is impossible to use to use the "file open dialog" / file uploader to browse files from server. You can create a dialog inside your browser with (html,css,php).

    Is difficult to give an example, because I do not know your requirements. However you have to use two buttons, it will be easier:

    1. upload from your computer

    2. upload from the server

    On click "upload from the server" , opens a window IN BROWSER (HTML+CSS) , that lists your folders and files on the server. To implement this , read here:

    http://php.net/manual/en/function.scandir.php

    http://php.net/manual/en/function.readdir.php

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥20 西门子S7-Graph,S7-300,梯形图
  • ¥50 用易语言http 访问不了网页
  • ¥50 safari浏览器fetch提交数据后数据丢失问题
  • ¥15 matlab不知道怎么改,求解答!!
  • ¥15 永磁直线电机的电流环pi调不出来
  • ¥15 用stata实现聚类的代码
  • ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
  • ¥20 docker里部署springboot项目,访问不到扬声器
  • ¥15 netty整合springboot之后自动重连失效
  • ¥15 悬赏!微信开发者工具报错,求帮改