how can i create a link from one webspace to a file on an ftp server? can i include the password in the link.
ie. [url]ftp:///url(password)@217.206.150.144/file.mp3
Could i put a list directory script on the webspace and it lists the files on the ftp server?
Im really in the dark about all this listing directory/ftp stuff any simple pointers would be great.
DAN.
Just use anonymous FTP, so the username/password portion isnt needed.
Otherwise you're effectively using anonymous FTP, but with an account that might have extra privileges.
PHP also has FTP functions, but I dont think you need to use them.
in some instances i will need the usr/pswrd in the link. Is this possible? I will have to access different clients' folders.
Any simple examples that does this?
ok, im making some progress-
//this one works <? if ($handleb = opendir('../')){ while (false !== ($fileb = readdir($handleb))){ if($fileb != "." && $fileb != ".."){ echo $fileb . "<br>"; } } } closedir($handleb);
if ($handle = opendir('ftp://testftp@217.206.150.145')){ while (false !== ($file = readdir($handle))){ if($file != "." && $file != ".."){ echo $file . "<br>"; } } } closedir($handle);_ ?>