Re: ftp root dir?

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

 



What I ended up doing was to make a dir with ftp_mkdir(). Then test it with file_exists() to see if it is where I expected. If not, I post a die() error msg and say "tech support required". Tech support can then figure out where the ftp root dir is. and set a config file accordingly.

Thanks.......

Johan Holst Nielsen wrote:
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 ;)


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