Save as dialog using php/or html to fwrite in user choice

半城伤御伤魂 提交于 2019-12-11 04:55:30

问题


My doubt is how to open a dialog box(using html/php) to the user so that he can decide where the txt file (which will be created by the php fwrite) will be recorded and under what name.

update1:

he page will get checkboxes with values, and i want the user to be able to give a directory and a nameOfFile to the php script so that the file will be created in that directory with that name, but i want something like a dialog box to user indicate where he decides that


回答1:


PHP cannot write files on a clients system (PHP is a server side language).

I'm unaware of a save dialog functionality in html/javascript where the user could select a destination and a file will then download to that functionality.



来源:https://stackoverflow.com/questions/10847425/save-as-dialog-using-php-or-html-to-fwrite-in-user-choice

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!