Page 1 of 1
Need to create a list of all hyperlinks in my website
Posted: Thu Jul 12, 2007 5:11 pm
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.
Posted: Thu Jul 12, 2007 6:00 pm
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.
Posted: Thu Jul 12, 2007 6:02 pm
by needphphelp
How do I traverse each page and list and edit..any code examples.
Thanks
Posted: Thu Jul 12, 2007 6:08 pm
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.
Posted: Thu Jul 12, 2007 6:09 pm
by needphphelp
Thanks, Will be looking at that clue....

Posted: Thu Jul 12, 2007 6:10 pm
by RobertGonzalez
And lots of file system functions, array functions and regular expressions.
You are in for quite a journey.
Posted: Thu Jul 12, 2007 6:30 pm
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.

Posted: Thu Jul 12, 2007 6:42 pm
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.