Page 1 of 1

saving a csv file without a prompt

Posted: Thu May 06, 2010 12:55 pm
by valique
hi

i have written php code to generate and insert content into a csv file. my problem is instead of the prompt that pops up asking you want to open or save the file, i would like help coming up with script that saves the csv file in a particular location.

thanks

Re: saving a csv file without a prompt

Posted: Thu May 06, 2010 2:44 pm
by pickle
Can't be done. Maybe - MAYBE - if you have a Java applet.

HTML/Javascript cannot save to the client without the user's permission. This is on purpose - to prevent malicious websites from automatically downloading stuff to the user's computer.