I have php code that writes a xml file to a specific location. The code is really simple, called by a hyperlink.
Right now, it saves my file to my .php's directory.
I want the user to choose where he wants to save the file by means (hopefully) of Save As dialog box.
Here is a simplified sample of the writting code.
I'm just starting php and javascript but i am willing to use any of those languages to get it done. Can anybody help me work out something that will let the user specify where he wants the file saved?
Right now, it saves my file to my .php's directory.
I want the user to choose where he wants to save the file by means (hopefully) of Save As dialog box.
Here is a simplified sample of the writting code.
Code:
$file = fopen("$file_name","w");
//(code that fills $xml_buffer)
fwrite($file, $xml_buffer);
fclose($file);
I'm just starting php and javascript but i am willing to use any of those languages to get it done. Can anybody help me work out something that will let the user specify where he wants the file saved?