Re: FTP Problems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



James Nunnerley wrote:
Thanks for the reply Chris.

How would you suggest displaying the current "home" directory for the user?
I've tried / and indeed the "real" directory name on that particular server.

Funnily enough, I've also just tried a generic php/ftp script tool, and it
works on a third party server into the one I'm trying to connect to, but not
from the server I'm working on!

Is there anyway in which php needs configuring for certain connections?

Even though you have this fixed..

"." means the current directory so you could:

ftp_nlist($connection, ".");

to display this directory and go from there.

In this case:
ftp_nlist($connection, "/");

Whether "/" means system level (ie so you'd see /proc, /etc and so on) or whether it takes you back to the base for that ftp account depends on the ftp server setup. Some lock you in to your /home type folder and some don't.

--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux