hi.... i created one link that is <a href="#">download file</a>
if user click on download file then download window should come or file should start to download ...
so how can i do this ...
hi.... i created one link that is <a href="#">download file</a>
if user click on download file then download window should come or file should start to download ...
so how can i do this ...
If you specifically want to force downloads of certain file types with PHP, have a look in to headers: https://www.google.co.uk/#q=php+headers+force+download
Alternatively (and usually easiest to guarantee getting around firewalls) is to just zip what ever you want to provide as a download. That should always prompt a download/save as dialogue window and you can keep using the standard hyperlink without any extra code.
Focus on Function Web Design
Fast Edit (A flat file, PHP web page editor & CMS. Small, FREE, no database!) | Fast Edit BE (Snippet Manager) (Web content editor for multiple editable regions!) | Fast Apps
I have this tutorial on the subject.
http://amecms.com/article/PHP-Force-...File-Whitelist
You never know everything, I learn everyday!
Bookmarks