-
April 19th, 2008, 07:27 AM
#1
Copy files from web server to local system
HI I have a problem, i need to copy the files that are in the web server in to the local system in ASP. Can anybody help me.
Thanks....
-
April 19th, 2008, 09:53 AM
#2
Re: Copy files from web server to local system
Why don't you just use FTP? It would be much faster and hastle free.
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
-
April 20th, 2008, 11:49 PM
#3
Re: Copy files from web server to local system
Hi. i would have used FTP but, I need to do this through my website its the requirement for the website. can it be done? please help....
-
April 21st, 2008, 06:52 AM
#4
Re: Copy files from web server to local system
Well, you have a couple of options, all of which will require administrative access to both the server and the local machine. And, on the local machine it will require user interaction.
1. You can zip the files and call a download dialog.
2. You can create an ActiveX object that would download the files.
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
-
April 23rd, 2008, 07:23 AM
#5
Re: Copy files from web server to local system
Thanks Chinchito.
the problem is that i need to download the file from the server into the local system into a particular folder and these folders path have to be given during runtime. can this be done?
-
April 23rd, 2008, 07:48 AM
#6
Re: Copy files from web server to local system
Then you would have to use option #2. It will require the client to use IE, and the user to allow the ActiveX object to run.
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
-
April 26th, 2008, 05:44 PM
#7
Re: Copy files from web server to local system
Originally Posted by Nitya_V
Thanks Chinchito.
the problem is that i need to download the file from the server into the local system into a particular folder and these folders path have to be given during runtime. can this be done?
You should not be doing this unless you absolutely have to. In 99% of cases you don't have to and one of the following will suffice:
- Scrap the idea and code it without the use of this file.
- Create an installation package or a zip file and have the user download and install it.
Which ever way you choose, you need to be asking the users permission. I would not recommend Active X because their are browser dependant and have a history of security issues and so people are naturally dubious about them. You also have Java as an option too which runs in most browsers. And, if you really want to use Active X or Java and still need to save a file on the user file system, then you need to get the applet/control digitally signed by a third party such as verisign otherwise it will be blocked by 80% of your audience.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|