so I'm working with the php ftp functions, and I have it working to browse through dir's it shows the first root directories of the connection, when i go one directory in to it, all goes well, but when i attempt to go 2 directories into it, it doesnt show anything, i thought at first you would need to go 1 dir then 2 dir again, but still nothing,
here is a bit of my code, its of any help, has anyone had this similar issue before?
php
if($path != null)
{
$sep = explode('/', $path);
foreach($sep as $var)
{
$buff = ftp_nlist($conn_id, $var);
}
}
else
{
$buff = ftp_nlist($conn_id, $c_dir);
}
here it checks for a path if their is one it chdir to the first dir then to the 2 and so on, and if no path then just to the chosen dir, and i had also tryed chdir to just the selected one, like so
php
$buff = ftp_nlist($conn_id, $c_dir);
But none show the contents of the second directory, i even checked the permissions of the directories...all good. so any help would be greatly appreciated.
Thank you,
Musya
This post has been edited by musya: 25 Aug, 2008 - 10:55 PM