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.
|
|
|
|
|
![]() |
||
Check whether URL exists
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Check whether URL exists
Is there a funstion that can check whether a url exists?
Sheeps |
|
|
|
|||
|
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. |
|
||||
|
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
Last Blog Entry: Creative Labs threaten developer over home made drivers.... (Apr 1st, 2008)
|
![]() |
| Tags |
| check, whether, url, exists |
| Thread Tools | |
|
|
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 |