Need to create a list of all hyperlinks in my website

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
needphphelp
Forum Newbie
Posts: 4
Joined: Thu Jul 12, 2007 4:53 pm

Need to create a list of all hyperlinks in my website

Post by needphphelp »

Hi All,

My first post here, hope you are able to help me.

I am trying to create an page in which I can see all the links in all my php and html files on my server. I want to be able to see all my hyperlinks which will be seen on any page and change some variables in the link field for the specific hyperlinks which I want.

Any suggestions, help is highly appreciated.

Thanks.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Without knowing how anything you have is built, I can only say you'll need to traverse every single page sucking up links.
needphphelp
Forum Newbie
Posts: 4
Joined: Thu Jul 12, 2007 4:53 pm

Post by needphphelp »

How do I traverse each page and list and edit..any code examples.

Thanks
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I generally don't provide code examples, especially for rather involved code such as this.

You will probably use cURL or file_get_contents() or some variant thereof.
needphphelp
Forum Newbie
Posts: 4
Joined: Thu Jul 12, 2007 4:53 pm

Post by needphphelp »

Thanks, Will be looking at that clue.... :)
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

And lots of file system functions, array functions and regular expressions.

You are in for quite a journey.
needphphelp
Forum Newbie
Posts: 4
Joined: Thu Jul 12, 2007 4:53 pm

Post by needphphelp »

I guess so.. ;-)

Is there existing script or application available anywhere which does this .... to save me the time..trouble..

Time is more than money..
I will rather give money than time. :-)
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

needphphelp wrote:Is there existing script or application available anywhere which does this .... to save me the time..trouble..
Probably. But where they are? That is a completely different question.
needphphelp wrote:I will rather give money than time. :-)
Hire someone. I hear there are a fair few developers who frequent this community that might be willing to take it on.
Post Reply