Submit Your Article Webforumz RegistrationAnnouncements Contact Webforumz StaffContact
Home Resources Blogs Meet the Team Contact Register
 

Go Back   WebForumz.com > The Code > PHP

Reply
 
LinkBack Thread Tools
Old July 8th, 2006, 11:11 AM   #1
New Member
 

Join Date: Mar 2006
Age: 22
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Don Logan is on a distinguished road
finding links in a web page

Hi

I have been looking for a function that finds links on a web page, i have used get_meta_tags() and file_get_contents() to get data off of a web page and wondered if there was something similar to get URLs. If not what would be simple and logical way to get URLs off a page?
Don Logan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old July 8th, 2006, 11:30 AM   #2
Most Reputable Member
 

Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 23
Posts: 1,063
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 sypher has a spectacular aura about sypher has a spectacular aura about
Re: finding links in a web page

Why do you need this function?
__________________
North Wales Web Design - sypher design
sypher is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old July 8th, 2006, 12:00 PM   #3
New Member
 

Join Date: Mar 2006
Age: 22
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Don Logan is on a distinguished road
Re: finding links in a web page

I'm attempting to write some crawling script, i want to extract and store in MySql all URLs encountered on a web page and then open the file that they point to and repeat the process for a nominal amount of web pages.
Don Logan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old July 8th, 2006, 01:24 PM   #4
Most Reputable Member
 
spinal007's Avatar
 

Join Date: Mar 2004
Location: Good Ol'London
Age: 24
Posts: 1,684
Blog Entries: 1
Thanks: 1
Thanked 4 Times in 4 Posts
Rep Altering Power: 0 spinal007 has a spectacular aura about spinal007 has a spectacular aura about
Re: finding links in a web page

Regular expressions.

Start here: http://en.wikipedia.org/wiki/Regular_expression
Perhaps try these tutorials: http://www.regular-expressions.info/
Then go hardcore: http://www.regexlib.com/ (only when you know your regexps)

That should get you started, but don't ask me how to run a regular expression in PHP...
I don't know!

[EDITED]
Here you go:
http://www.regular-expressions.info/php.html
http://weblogtoolscollection.com/regex/regex.php
LOL
__________________
Diego - Web-Developer & London SEO Expert
jQuery Plugins: Multiple File Upload, Star Rating, FCKEditor | NEW: XML to JSON

Last edited by spinal007; July 8th, 2006 at 01:33 PM..
spinal007 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Old July 9th, 2006, 07:26 AM   #5
New Member
 

Join Date: Mar 2006
Age: 22
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Altering Power: 0 Don Logan is on a distinguished road
Re: finding links in a web page

Cheers Mate, nice one.
Don Logan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Bookmarks

Tags
finding , links , web , page


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Links directed to a new page or tab thewebkid HTML, XHTML and CSS 12 January 1st, 2008 09:09 AM
links page littlebilly Your Design and Layout 7 July 25th, 2007 04:22 PM
Layout for a links page Zonglars Graphic Specifics 12 July 22nd, 2007 02:03 AM
links to different points on the same page bruno89 HTML, XHTML and CSS 13 November 8th, 2006 08:14 PM
Numbered links to every page dinahdoey Classic ASP 5 September 12th, 2004 01:01 PM


Search Engine Optimization by vBSEO 3.2.0 RC8