download file from server to client

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
nothingman
Forum Newbie
Posts: 1
Joined: Tue Sep 20, 2005 2:32 pm

download file from server to client

Post by nothingman »

hello,

I need to download the file from server on which my application is running to the clients hard drive into the exact directory.

on server I have file export/export_001.csv

and when user click on some link on my websites this file must be downloaded to the usres hard drive into C:/download/export.csv

Code: Select all

<a href=export/export_001.cs>link</a>
is not usefull because it asks if the file should be downloaded and into which folder and under which name

I need to do the download without asking the user.

can anyone help me ???

thanx in advance
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

This is impossible using most languages considering it would be an extremely high security risk. Think about if websites had the ability to maliciously download dangerous applications to your harddrive.
Post Reply