Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > PHP

Reply
 
LinkBack Thread Tools
Old July 23rd, 2005, 12:37 PM   #1
New Member
 

Join Date: Jul 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Sheepymot is on a distinguished road
Check whether URL exists

Is there a funstion that can check whether a url exists?

Sheeps
Sheepymot is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old July 24th, 2005, 03:51 AM   #2
Reputable Member
 

Join Date: Jul 2005
Location: Melksham, Wilts, UK
Posts: 293
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 grahame is a jewel in the rough grahame is a jewel in the rough grahame is a jewel in the rough
There is no general function to check any URL, but you can check an http:// URL for readability easily enough - example. The only way to test for mailto: type URLs is to send an email to the URL and see if the owner of the URL responds, and you're not going to find it very easy to check for the existance of http:// web pages within directories for which authorisation is required.

Note that testing a remote URL will cause your enquiry to be recorded in log files that the server there is probably keeping, and that you should respect the robots exclusion standard is you're doing more than a handful of tests.
grahame is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old July 24th, 2005, 04:16 AM   #3
Rob
Elite Veteran
SuperMember
 
Rob's Avatar
 

Join Date: Jul 2003
Location: Southern UK
Age: 35
Posts: 3,126
Blog Entries: 7
Thanks: 28
Thanked 22 Times in 19 Posts
Rep Altering Power: 0 Rob is a jewel in the rough Rob is a jewel in the rough Rob is a jewel in the rough
I recall seeing a way to tentatively check if an email address exists, however although it always returns true for 'good' emails, it can occasionally return true for false emails.

I would consider it though better than nothing... My guess is that the method I remember reading about would be 80% accurate which is far better than a poke in the eye.

I'll investigate and try and recall the information.
__________________
Rob - Webforumz Founder
Web Designer Support Network || Personal Project: Sanctuary for Student Midwives
Rob is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Tags
check , whether , url , exists


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Check to see if a cfwindow exists BenR41 Other Languages 0 February 25th, 2008 08:22 AM
fastest way to check if table exists CloudedVision PHP 3 February 20th, 2008 12:15 PM
simple check if user exists mlecho PHP 3 August 28th, 2007 11:48 AM
Check my tutorial please alexgeek PHP 6 August 10th, 2007 02:27 PM


Search Engine Optimization by vBSEO 3.2.0 RC8