Re: Method to check whether a remote file exist or not
| From: | phobo | Date: | Mon, 27 Nov 2000 20:33:16 +0000 |
| Subject: | Re: Method to check whether a remote file exist or not | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-4776@lists.php.net to get a copy of this message | ||
you could use the FTP commands at http://www.php.net/manual/ref.ftp.php to
login and stuff.
Siggy
----- Original Message -----
From: "JJeffman" <jjeffmanweb@conex.com.br>
To: <php-db@lists.php.net>
Sent: Tuesday, November 28, 2000 12:43 AM
Subject: Re: [PHP-DB] Method to check whether a remote file exist or not
> May be the first ftp server requires a logon . From php manual : " If the
> server does not support passive mode ftp, this will fail. "
>
> Jayme.
>
> http://www.conex.com.br/jjeffman
>
>
>
> -----Mensagem Original-----
> De: Joseph Hadinata <joseph@bluechillies.com>
> Para: <php-db@lists.php.net>
> Enviada em: segunda-feira, 27 de novembro de 2000 00:41
> Assunto: [PHP-DB] Method to check whether a remote file exist or not
>
>
> > Hi,
> >
> > Usually I use fopen($URL,"r") to check whether a remote file is exist.
> Until
> > I found an URL that prove this method isn't reliable. For example:
> >
> > fopen("ftp://ftp.simtel.net/pub/simtelnet/win95/sched/aap_v10h.zip","r")
> > return false, while
> >
> > fopen("ftp://ftp.remotetek.com/freepak/fpk132.zip","r")
> > return true.
Both
> > file is exist!!
> > Can anyone give me a reliable method to check whether a remote file
exist
> or
> > not? or have any idea why this happens?
> >
> > Best regards,
> >
> > Joseph Hadinata
> > BlueChillies.com
> > http://BlueChillies.com
> >
> >
> >
> > --
> > PHP Database Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-db-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>