Jump to content

File Search Browser To Output FilePath


Dan_Mason

Recommended Posts

Help!

 

I asked this a while ago, but i didnt word it very well, as i wasnt sure exactly what i wanted :P.

 

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.