Re: ftp root dir?

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

 



Al wrote:
Can I assume that all ftp_connect()s will make the current dir the DOC_ROOT?

First of all - what do you mean with DOC_ROOT? If it is the document root (of what?!).

If not, how can I insure the ftp root dir is the same as DOC_ROOT?

Define DOC_ROOT :)

if you ftp_chdir() and it's already on the root, it posts an error.

Well if you tries to go back to the root - try to use ftp_cdup - but it shouldn't be needed if you combine ftp_pwd and ftp_chdir

ftp_pwd() simply returns "/", which simply says it's on its root, where ever that is.

If is (logical) the root of the ftp server. It can be whereever on the server. It depends on the configuration of the FTP server ;)

--
Johan Holst Nielsen
Freelance PHP Developer - http://phpgeek.dk

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