SunQuest
 
           General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old February 22nd, 2003, 08:22 AM
truedos truedos is offline
Junior Member
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Posts: 4 truedos User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Download using FTP functions

Hi all.

Can somebody tell me how to copy a file from a server and place it to the client machine using FTP functions.

The ftp function of php "ftp_get()" does not really get the file from a server and put to the client machine. What it actually does is open an ftp connection and the file you want to copy from the server will be placed in the current directory of the server where the script resides instead of the client machine drive.

Let's consider that the client's OS would be Windows.

Thx.

Reply With Quote
  #2  
Old February 22nd, 2003, 08:50 AM
nicat23's Avatar
nicat23 nicat23 is offline
Addicted to Chaos..
Dev Articles Novice (500 - 999 posts)
 
Join Date: Jan 2003
Location: Ft. Worth, TX
Posts: 653 nicat23 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 47 m 52 sec
Reputation Power: 0
Send a message via AIM to nicat23 Send a message via Yahoo to nicat23
Well the way that FTP Works is that it is a client side connection, the server does not start the connection. The client requests a connection, the server responds with a login request, if the criteria is met to allow the download then the server allows the client to "GET" the file and store it wherever the client requests. There isn't a way to open a ftp connection and put to a client.. you could open a ftp connection and put to a server, however as long as you have the login and password of where you wish to store the file..

Are you wanting to do something like FlashFXP does where it opens a connection to two different servers and transferrs that way so that the clients machine never actually downloads the file?

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Download using FTP functions


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway