Results 1 to 2 of 2

 

Thread: PHP question

  1. #1
    Senior Member

    Status
    Offline
    Join Date
    Sep 2003
    Posts
    768
    Thanks
    0
    Thanked 2 Times in 2 Posts


    Got myself stuck on something & know that a lot of you guys know your way around PHP.

    I'm trying to extract the links from a load of code that I have here using PHP.

    For instance, I may have some code like:

    PHP Code:
    <b>some rubbish</b><br><a href="link1.php">Read page one</a> and while you are there why not <a href="link2.pgp">read page 2</a
    All I want to retrieve from it is the href and link text for each link (so that I can dump it in a database).

    Sure that there is meant to be someone here to help with stuff like this, but everyone has buggered off for the weekend - Thought it a pretty safe bet that someone would pass by here though.

  2. #2
    Keith's Avatar
    Moderator

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Richmond North Yorkshire
    Posts
    2,540
    Thanks
    172
    Thanked 119 Times in 83 Posts
    matt you have probably picked the worst day of the year to ask your question with the cream of the forum all at Bosworth Hall.

    Anyway i've had a look round and this may help you http://www.phpfreaks.com/quickcode/E..._a_Page/15.php
    Keith ~ My Blog general ramblings. Internet Marketing Blogs UK all the blogs together in one place (pm for inclusion)



Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
To Top

Content Relevant URLs by vBSEO 3.5.0 RC2