ftp-directory included in website
Permalinkis there a nice way to include a ftp directory into my concrete5 website, where people can download things?
thanks!!
i would like to add my ftp directory like a content block to my site..
but I do get an error message:
Warning: ftp_connect() [function.ftp-connect]: php_network_getaddresses:getaddrinfo failed: Name or service not known in ...../packages/kino_ftp_directory/models/kino_ftp_directory.php on line 11
ftp connection error
any ideas?
Thanks,
Christian
ex.) ftp.tktools.jp
then it says: ftp connection error
maybe it´s because of the university server, i don´t know..
would you try it for me?
the adress of the ftp server is: 193.238.157.4:2100
user anonymous/no pw set
if you want change .
/packages/kino_ftp_directory/models/kino_ftp_directory.php
line 9,40
$ftp_port = 21;
Add input for port.
000049)06.03.2011 16:34:44 - (not logged in) (193.170.75.21)> Connected, sending welcome message...
(000049)06.03.2011 16:34:44 - (not logged in) (193.170.75.21)> USER anonymous
(000049)06.03.2011 16:34:44 - (not logged in) (193.170.75.21)> 331 Password required for anonymous
(000049)06.03.2011 16:34:44 - (not logged in) (193.170.75.21)> PASS
(000049)06.03.2011 16:34:44 - anonymous (193.170.75.21)> 230 Logged on
(000049)06.03.2011 16:34:44 - anonymous (193.170.75.21)> PORT 193,170,75,21,157,28
(000049)06.03.2011 16:34:44 - anonymous (193.170.75.21)> 200 Port command successful
(000049)06.03.2011 16:34:44 - anonymous (193.170.75.21)> NLST /
(000049)06.03.2011 16:34:44 - anonymous (193.170.75.21)> 150 Opening data channel for directory list.
(000049)06.03.2011 16:34:54 - anonymous (193.170.75.21)> 425 Can't open data connection.
(000049)06.03.2011 16:35:29 - anonymous (193.170.75.21)> QUIT
(000049)06.03.2011 16:35:29 - anonymous (193.170.75.21)> 221 Goodbye
(000049)06.03.2011 16:35:29 - anonymous (193.170.75.21)> disconnected.
I know that I´m a pain in the neck but it has to work! ;D
Update:
Ok now I installed the last version you posted (0.2) I set the port in the user interface to 2100 and the other time to input, still the same as above (another time i also changed the port in the script, still didn´t work..)
Updated.
I think need pasv mode.
try this.
is there also a way to display folders and not only files (it just shows me info.txt but no folders)?
folders is no display.
add show folders setting.
and
add folder move action.
except: I do have a info.txt on my ftp server, if I download it via ftp everythink is ok, but if I donwnload/open it via your script there´s nothing of the original text in the file left and the txt-file is filled up with parts of the script...
if everything works you should sell it!!
I would buy it! ;)
<br />
<b>Warning</b>: ftp_get(/users/home45/e0928345/public_html/files/tmp/9f2d4f38237962835d587fe9454191c5.tmp) [<a href='function.ftp-get'>function.ftp-get</a>]: failed to open stream: No such file or directory in <b>/users/home45/e0928345/public_html/packages/kino_ftp_directory/models/kino_ftp_directory.php</b> on line <b>53</b><br />
<br />
<b>Warning</b>: ftp_get() [<a href='function.ftp-get'>function.ftp-get</a>]: Error opening /users/home45/e0928345/public_html/files/tmp/9f2d4f38237962835d587fe9454191c5.tmp in <b>/users/home45/e0928345/public_html/packages/kino_ftp_directory/models/kino_ftp_directory.php</b> on line <b>53</b><br />
<br />
<b>Warning</b>: filesize() [<a href='function.filesize'>function.filesize</a>]: stat failed for /users/home45/e0928345/public_html/files/tmp/9f2d4f38237962835d587fe9454191c5.tmp in <b>/users/home45/e0928345/public_html/packages/kino_ftp_directory/models/kino_ftp_directory.php</b> on line <b>59</b><br />
<br />
<b>Warning</b>: fopen(/users/home45/e0928345/public_html/files/tmp/9f2d4f38237962835d587fe9454191c5.tmp) [<a href='function.fopen'>function.fopen</a>]: failed to open stream: No such file or directory in <b>/users/home45/e0928345/public_html/packages/kino_ftp_directory/models/kino_ftp_directory.php</b> on line <b>68</b><br />
no original text left...
check /users/home45/e0928345/public_html/files/tmp/
permission .
Written permission is required.
You must periodically delete the *.tmp files in that directory.
Do may have an idea to get an permanent solution (I could try to speak to the server administrator..)?
just found/"solved" the problem...
there was no tmp directory in /files/ so I just made one and everything works perfect now!
just one problem left: your script downloads all the files into this tmp folder - so it gets bigger and bigger (do have limited space - 300mb, but about 300 downloads a day), could you add an automatic-delete function after file has been downloaded?
thx and greetings from austria!
I think the following add-ons
http://www.concrete5.org/marketplace/addons/download_folder/...