Checking url validation

From: Date: Fri, 29 Mar 2002 20:32:25 +0000
Subject: Checking url validation
Groups: php.general 
Request: Send a blank email to php-general+get-90710@lists.php.net to get a copy of this message
I am using the following to verify a url: if (!$fp = fopen("http://www.anyurl.com", "r")) { echo "not valid"; } else { echo "this is a valid url"; } I always get a not valid message. What am I doing wrong? Is there a better way to do this? Mark Roberts Sr. Systems Analyst LanApps/Web Development The Williams Information Services Corporation 918-573-1706 mark.roberts@williams.com

« previous php.general (#90710) next »