Hi All: This appears to be simple but I am stumped. I have searched through all the past post but to no avail. Basically: 1. User clicks on a link and a php page is presented. 2. User selects a local TEXT CSV file and clicks on the 'Upload File' button. 3. Local file is sent to the web browser, where each line in the CSV file is read, processed, geocoded. 4. A HTML table is formed to display the results of the geo coding. Everything works until this step. 5. The user needs to now click on a button, type in the name for the output file (just the name ....) and the code should use the old directory path, append the output file name (as entered above), append the extension ".csv", open the file, write to it and close the file. I know all about fopen, fwrite and fclose. My specific questions are: 1. How do I parse and retain the directory path of the original csv file so that I can save back to the same dir? $_FILES['userfile']['name'] does not have the dir path. 2. In the php file which displays the result, how do I create another button that will enabe the user to traverse the local file system pick another location and type in the file name for the output? 3. Lastly, since the results are displayed in the browser, the data has already been sent to the browser. If I save the results in an array in the php that processes the input, after the user clicks on this button, is the array available to me to then traverse and fwrite to the file? I guess fundamnetally I don't understand where the data resides since I don;t want it to go back to the web server just to save the ouput to a local file. Any help will be much appreciated!!!! -Venki