PHP & FTP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
phpcoder
Forum Contributor
Posts: 158
Joined: Sat Nov 02, 2002 1:18 pm
Location: Manchester, UK

PHP & FTP

Post 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 .
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

Post by ol4pr0 »

User avatar
phpcoder
Forum Contributor
Posts: 158
Joined: Sat Nov 02, 2002 1:18 pm
Location: Manchester, UK

Post 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 .
User avatar
ol4pr0
Forum Regular
Posts: 926
Joined: Thu Jan 08, 2004 11:22 am
Location: ecuador

Post by ol4pr0 »

You said thanks.. but did you actually read it ?
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post 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
Post Reply