Re: Method to check whether a remote file exist or not

From: Date: Mon, 27 Nov 2000 11:43:40 +0000
Subject: Re: Method to check whether a remote file exist or not
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-4758@lists.php.net to get a copy of this message
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 >

« previous php.db (#4758) next »