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 .
PHP & FTP
Moderator: General Moderators
Thanks !ol4pr0 wrote:Huge documentation on this subject on php.net
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');
?>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
To list files in directory, you need this function
http://uk2.php.net/manual/en/function.ftp-nlist.php