Re: check if an url is valid

From: Date: Fri, 27 Apr 2001 07:58:49 +0000
Subject: Re: check if an url is valid
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-50575@lists.php.net to get a copy of this message
ok, I'll try with socket. Thanks > no, sockets are not a bad solution at all. They are just as fast. > > And plus fsockopen has more functionality such as timing out, result > messages, mess_num etc... what fopen doesn't have. > > I think fsockopen is better for this job. > > > Sincerely, > > Maxim Maletsky > Founder, Chief Developer > PHPBeginner.com (Where PHP Begins) > maxim@phpbeginner.com > www.phpbeginner.com > > > > > -----Original Message----- > From: Black Dragon [mailto:edinf@libero.it] > Sent: Friday, April 27, 2001 6:41 AM > To: php-general@lists.php.net > Subject: [PHP] check if an url is valid > > > Hi! > > can you tell me how can I check if a remote files exists? > > I've tried with fopen, but I've a warning on STDOUT if file doesn't exists. > I wouldn't redirect the STDERR to solve this problem. > > I could use fsockopen, but I feel that this is a bad solution. > > Can you tell me something that is easy? > > I would a function that return true/false if an url is/not is valid; without > error to browser > > Thanks > > > > > -- > 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 > > -- > 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 (#50575) next »