saving a csv file without a prompt

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
valique
Forum Newbie
Posts: 1
Joined: Thu May 06, 2010 12:49 pm

saving a csv file without a prompt

Post 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
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: saving a csv file without a prompt

Post 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.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply