Dan_Mason Posted March 24, 2009 Share Posted March 24, 2009 Help! I asked this a while ago, but i didnt word it very well, as i wasnt sure exactly what i wanted . Basically, I am using the fopen() function to write a .txt file, but i want the user to be able to specify the path that the file saves to. I need to do this as some of our clients are restricted and arent even allowed to save files on the C Drive of their Computers! (Paranoid Network Admin...) I wanted to do this using a File Browser within the Web browser, so that when the user selects the Directory needed, the path is written to the variable which is then passed into fopen(). <?php $filename = $DirectoryUserHasChosen //$filename = $FilePath; $somecontent = "Recorded Sections\tNumber Of Coils\etc\etc"; fopen($filename, 'w'); etc etc Rest of code ?> Any help would be much appreciated. Link to comment https://forums.phpfreaks.com/topic/150864-file-search-browser-to-output-filepath/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.