Re: Re: File or directory?
| From: | Ashley Sheridan | Date: | Tue, 18 Aug 2009 10:33:52 +0000 |
| Subject: | Re: Re: File or directory? | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-296917@lists.php.net to get a copy of this message | ||
On Tue, 2009-08-18 at 13:30 +0300, Ollisso wrote:
> On Tue, 18 Aug 2009 13:00:37 +0300, Clancy <clancy_1@cybec.com.au> wrote:
>
> > On Sun, 16 Aug 2009 23:24:05 -0600, george.langley@shaw.ca (George
> > Langley) wrote:
> >
> >> is_dir()
> >>
> >> <http://ca3.php.net/is_dir>
> >>
> >> is_file()
> >>
> >>
> >> <http://ca3.php.net/manual/en/function.is-file.php>
> >>
> > I specifically asked about FTP under PHP. As far as I can see neither
> > of these references
> > have anything to do with FTP.
> >
>
> http://ca3.php.net/manual/en/wrappers.ftp.php
>
> Supports stat() No As of PHP 5.0.0: filesize(), filetype(), file_exists(),
> is_file(), and is_dir() elements only. As of PHP 5.1.0: filemtime().
>
> should work if PHP >= 5.0.0
>
> --
> Using Opera's revolutionary e-mail client:
> http://www.opera.com/mail/
>
That only works if you have used the file wrapper functions to open the
remote FTP connection. Some FTP hosts don't support the use of these
wrappers I believe also.
What is wrong with using ftp_rawlist() ?
Thanks,
Ash
http://www.ashleysheridan.co.uk