Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44034 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29719 invoked from network); 21 May 2009 12:26:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 May 2009 12:26:15 -0000 Authentication-Results: pb1.pair.com smtp.mail=crrodriguez@suse.de; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=crrodriguez@suse.de; sender-id=unknown Received-SPF: error (pb1.pair.com: domain suse.de from 195.135.220.2 cause and error) X-PHP-List-Original-Sender: crrodriguez@suse.de X-Host-Fingerprint: 195.135.220.2 cantor.suse.de Linux 2.4/2.6 Received: from [195.135.220.2] ([195.135.220.2:49263] helo=mx1.suse.de) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A4/40-28112-168451A4 for ; Thu, 21 May 2009 08:26:11 -0400 Received: from relay1.suse.de (relay-ext.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id 5F915457F0 for ; Thu, 21 May 2009 14:07:37 +0200 (CEST) Message-ID: <4A1543F6.4070600@suse.de> Date: Thu, 21 May 2009 08:07:18 -0400 Organization: Platform/OpenSUSE - Core Services, SUSE LINUX Products GmbH, Research & Development User-Agent: Thunderbird 2.0.0.18 (X11/20081112) MIME-Version: 1.0 To: internals References: <200905211348385936171@gmail.com> In-Reply-To: <200905211348385936171@gmail.com> X-Enigmail-Version: 0.95.7 OpenPGP: id=85898BD3 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig17E17FA51075F932C0D42887" Subject: Re: [PHP-DEV] how can I check the url's validity From: crrodriguez@suse.de (=?UTF-8?B?Q3Jpc3RpYW4gUm9kcsOtZ3Vleg==?=) --------------enig17E17FA51075F932C0D42887 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable jackywdx escribi=C3=B3: > hi all: > I have a problem, I wonder if there is any good way to check the url's = validity. > For example, the url: http://diybbs.enet.com.cn/thread-3004314-1-1.html= =20 > How can I check whether the page exsist, meaning it has content, not 40= 4. > My server's php version is PHP4.3.9, quite low, and doesn't have curl = extension. > I have try fsockopen, fopen. But it's not effective enough, a bit slow.= > I wonder if there is some functions or some ways to quickly detemine wh= ether the url is valid. > Thanks. >=20 This question is suited for php-general list and NOT for internals, anyway, install PHP5, and try again.. 4.3.9 is extremely old and you shouldnt be running that... --=20 "If this is the best God can do, I am not impressed" -George Carlin (1937-2008) Cristian Rodr=C3=ADguez R. Software Developer Platform/OpenSUSE - Core Services SUSE LINUX Products GmbH Research & Development http://www.opensuse.org/ --------------enig17E17FA51075F932C0D42887 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iEYEARECAAYFAkoVQ/kACgkQhbiInYWJi9Pw8wCgxmijtnUDrmLeJ+UgCQ9ijXoo aX0AoMKAmS20tUmm95C45/jImQ1mvUk3 =DTI9 -----END PGP SIGNATURE----- --------------enig17E17FA51075F932C0D42887--