save file dynamically

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
oopson
Forum Newbie
Posts: 3
Joined: Thu May 05, 2005 7:23 am

save file dynamically

Post by oopson »

hi

i want php to show the popup box to ask the user to save or view the file instead of using the standard html link which needs the user to right click then save the file.
an example of what i want is in phpmyadmin when you want to export the DB you can check the save file box and it will show that popup window i am talking about

please help
regards
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

as you will find in many previous discussions, there is no way to do this, because the only one who controls his browser is the user himself.

but a little websearch on "force-download" will give you plenty of more-or-less working solutions...
oopson
Forum Newbie
Posts: 3
Joined: Thu May 05, 2005 7:23 am

Post by oopson »

Post Reply