Check whether URL exists

This is a discussion on "Check whether URL exists" within the PHP Forum section. This forum, and the thread "Check whether URL exists are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jul 23rd, 2005, 16:37
New Member
Join Date: Jul 2005
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Check whether URL exists

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

Sheeps
Reply With Quote

  #2 (permalink)  
Old Jul 24th, 2005, 07:51
Reputable Member
Join Date: Jul 2005
Location: Melksham, Wilts, UK
Posts: 293
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #3 (permalink)  
Old Jul 24th, 2005, 08:16
Rob's Avatar
Rob Rob is offline
Head Admin & CEO

SuperMember
Join Date: Jul 2003
Location: at my desk
Age: 34
Posts: 2,952
Blog Entries: 7
Thanks: 7
Thanked 4 Times in 4 Posts
Send a message via MSN to Rob Send a message via Skype™ to Rob
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 - SEO Specialist
Owner & Founder of Webforumz.com

I am currently unavailable for private work
Reply With Quote
Reply

Tags
check, whether, url, exists

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 Programming Languages 0 Feb 25th, 2008 12:22
fastest way to check if table exists CloudedVision PHP Forum 3 Feb 20th, 2008 16:15
simple check if user exists mlecho PHP Forum 3 Aug 28th, 2007 15:48
Check my tutorial please alexgeek PHP Forum 6 Aug 10th, 2007 18:27
Hello, check this ;) Anonymous User Introduce Yourself 1 Feb 12th, 2004 19:10


All times are GMT. The time now is 11:21.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43