|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today! |
|
#1
|
|||
|
|||
|
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. |
|
#2
|
||||
|
||||
|
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? |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Download using FTP functions |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|