|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
||||
|
||||
|
online ftp client: ftp_get()?
ok, i have just created an experimental ftp client application located here:
http://terminal.x5788.net/ftp/ however, im having some problems.. i can easily connect to the server and list files along with allowing simple navigation through subdirs, however, i cant use ftp_get() to download a selected file.... the thing is, i dont really get the definitions of its parameters.. this is part of my code: PHP Code:
and im not sure whether or not im setting them right. pleaz help! thanx! -xn |
|
#2
|
||||
|
||||
|
could you just use file_get_contents(); it just requires php 4.3 and fopen wrappers on
|
|
#3
|
||||
|
||||
|
hmm....im unfamiliar with what youre saying....ive used file_get_contents() in the past simply to display code or as a secondary type of include for non-php pages..and the thing is...how would the file permissions allow downloading from an external sites filesys path?
sorry, i just need a bit of a more explaination if you would thanx -xn |
|
#4
|
||||
|
||||
|
you would just use it like this
PHP Code:
may not work too good though, just a thought, and what errors are you getting trying to use to use ftp_get();? |
|
#5
|
||||
|
||||
|
oooo....i know what it is....
ok, well...the ftp_get() function simply downloads a file from a server to another one, and not to your desktop... cuz i wanted to download the file to the desktop instead of to another place on my server... |
![]() |
| Viewing: Dev Shed Forums > System Administration > FTP Help > online ftp client: ftp_get()? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|