Jump to content

detect working links

- - - - -

  • Please log in to reply
3 replies to this topic

#1
eman ahmed

eman ahmed

    Learning Programmer

  • Members
  • PipPipPip
  • 79 posts
hi, all
I want to implement a program to detect which links in specific web site are working and which aren't working, but I don't know which topic should be read. so I need someone to put me in correct way

#2
Alexander

Alexander

    It's Science!

  • Moderators
  • 4,118 posts
  • Location:Vancouver, Eh! Cleverness: 200
If you are using something such as PHP, you would use fsockopen with a timeout to ensure the link is resolvable. You could as well check headers with get_headers in an associative array to check for any 404's in case the page is reachable but does not exist.

It would help to know the language.
Be sure to read the updated FAQ! || Health is achieved through the same 10,000 steps.
If a suggested code/method fails, informing us is less important than telling us why or what errors occurred.

#3
eman ahmed

eman ahmed

    Learning Programmer

  • Members
  • PipPipPip
  • 79 posts
I will using java to write this program

#4
tossy

tossy

    Programmer

  • Members
  • PipPipPipPipPip
  • 202 posts
Try with this tool for regular expressions at RegExr. There is also a desktop version.
Microsoft: "You've got questions. We've got dancing paperclips




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users