Page 1 of 1

PHP & FTP

Posted: Wed Jul 28, 2004 8:37 am
by phpcoder
Hi buddizes,
I have a webserver on which i have hosted websites wat i want is to give my client web based interface of FTP so my client after authentication can upload download rename etc file in their aloted folder on web server . so plz help me in this regard .

Posted: Wed Jul 28, 2004 8:44 am
by ol4pr0

Posted: Wed Jul 28, 2004 9:14 am
by phpcoder
Thanks !
I need some help if u can .
this is my script

Code: Select all

<?php

$ftp_server = "ftp.example.com";

// set up a connection or die
$conn_id = ftp_connect($ftp_server) or die("Couldn't connect to $ftp_server");
ftp_chdir($conn_id, 'user home dir');

?>
Now after authentication i want to disply user all the uploded file and directories . Plz tell me how can i do it .

Posted: Wed Jul 28, 2004 10:33 am
by ol4pr0
You said thanks.. but did you actually read it ?

Posted: Wed Jul 28, 2004 10:38 am
by JayBird
read the link that ol4pr0 gave you, EVERYTHING you need is there.

To list files in directory, you need this function

http://uk2.php.net/manual/en/function.ftp-nlist.php