Hi ,
I have some prob in using ftp_nlist function when i called this function it only displays the files in specified folder not the directories . i want to display the entire contents of the dir including files and directories .
plz help
thanks
prob while listing contents
Moderator: General Moderators
Try something like:
Code: Select all
if ($open = opendir('directoryname'))
{
while(false != ($file = readdir($open)))
{
print($file."\n");
}
closedir($open);I want to display user wid all contents of his home directory after successfull loging . It is basically a ftp facility thro browser where tjhe user can upload files rename delete etc the file in his home directory . The prob dat m facing is dat i m using ftp_nlist() it displays file but not the directories . i don no was the prob plz help me . M stuck infeyd wrote:[php_man]glob[/php_man]() may also work, depending on your php version...
M using PHP5