Re: file checking

From: Date: Sun, 14 Jan 2001 23:20:49 +0000
Subject: Re: file checking
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-34515@lists.php.net to get a copy of this message
PHP has a function called file_exits I belive... you can read about it on the php manual at php.net under file functions. ***************************************************************************** Philip M. Gollucci (p6m7g8) Web-site : http://www.p6m7g8.com E-mail : gollucci@wam.umd.edu Philip@p6m7g8.com Phone : 301.249.6261 (Home) 301.314.3118 (College) Major : Computer Science Electrical Engineering Minor : Classical & Jazz Performance Current Job : Science, Discovery, & the Universe Webmaster URL: http://www.sdu.umd.edu Resume : http://www.wam.umd.edu/~gollucci/resume.html ***************************************************************************** On Sun, 14 Jan 2001, Huseyin wrote: > i am trying to write a function that checks the file to see if it is still > availabla to download > if not it will return link is broken > this is what i have > if(!($connection = @fopen ($row[url], "r"))) { > $broken=1;} > else { > $broken=0; > } > but the problem is that it sometimes display broken link even thoug it is > not > if someone can help me thats wonderful > thanks in advance > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.general (#34515) next »