Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:44033 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81321 invoked from network); 21 May 2009 05:50:10 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 May 2009 05:50:10 -0000 Authentication-Results: pb1.pair.com header.from=jackywdx@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=jackywdx@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.222.180 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: jackywdx@gmail.com X-Host-Fingerprint: 209.85.222.180 mail-pz0-f180.google.com Received: from [209.85.222.180] ([209.85.222.180:58241] helo=mail-pz0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 30/01-10005-19BE41A4 for ; Thu, 21 May 2009 01:50:09 -0400 Received: by pzk10 with SMTP id 10so200510pzk.29 for ; Wed, 20 May 2009 22:50:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:x-mailer:mime-version:content-type; bh=H45Twd0993vEQd8dnhhRDZT9YbGscxRp49/cK3bc0sI=; b=kk3tYr/N9Jog1mg/ivZ+rdwaUrisRK7SxywUJ7LcpgsrSjIszFTI16IkZ28kgrfeXl 2D0Z5ksMDvzsrxeT/Jzxlyg+u98l8oqmn81JxDHxeu77PH5f2z5GTjybCyo5zNrXeZQ7 Q+hu79VpViamjJ1BKhNn1hW8Y3YS33uEqLZuQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:x-mailer:mime-version:content-type; b=xZcYrMT2EbFZF1OOipaBgNBXfn8NhBFMm+aAuLFtThEEGsG7CWovfterp2cKk99CQc DzjczS+C5v+IntgTzxzA5NTrJJLtnPelCgYckYjGeGiz7tcaB+NvYBLtZhTMPPxEbGo3 6sMRGefAjTBuk2qHIJ2q6TnoCw8PUu82sL+fw= Received: by 10.115.94.1 with SMTP id w1mr4430449wal.30.1242885006098; Wed, 20 May 2009 22:50:06 -0700 (PDT) Received: from sina-18b19-1 ([61.135.152.194]) by mx.google.com with ESMTPS id l27sm4676523waf.20.2009.05.20.22.50.03 (version=SSLv3 cipher=RC4-MD5); Wed, 20 May 2009 22:50:05 -0700 (PDT) Date: Thu, 21 May 2009 13:48:41 +0800 To: "internals" Message-ID: <200905211348385936171@gmail.com> X-mailer: Foxmail 6, 14, 103, 24 [cn] Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=====003_Dragon121372738186_=====" Subject: how can I check the url's validity From: jackywdx@gmail.com ("jackywdx") --=====003_Dragon121372738186_===== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 How can I check whether the page exsist, meaning it has content, not 404. 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 whether the url is valid. Thanks. --=====003_Dragon121372738186_=====--