#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    0
    Rep Power
    0
    Hi,

    I want to parse a html file in order to retrieve all its links and put them in a table. Can someone please help me w/ the better way to do so ?
    thanx

    V.
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    0
    Rep Power
    0
    I probably would use fopen or fscockopen combined with regular expressions in PHP to parse the page, and pluck out anything with: '<ahref> </a>'.

    Read a tutorial on them, there a little complicated to explain here, but a decent tutorial (at webmonkey or somewhere) will explain the process.

    You can have it done in a few hours.

    Regards,

    Jason
  4. #3
  5. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    6
    Rep Power
    0
    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by backpacklondon.com:
    I probably would use fopen or fscockopen
    [/quote]


    Fs-****-open???



    LOL!
    try fsockopen

    laterz

    ------------------
    Quote the Dokus:"NeverMore!"

Similar Threads

  1. Replies: 11
    Last Post: February 21st, 2004, 07:48 AM
  2. Replies: 0
    Last Post: February 8th, 2004, 11:11 PM
  3. Javascript links - 'error on page'
    By George Little in forum JavaScript Development
    Replies: 0
    Last Post: February 6th, 2004, 05:25 PM
  4. feedback - span links = yuck
    By shreela in forum Dev Shed Lounge
    Replies: 2
    Last Post: January 29th, 2004, 12:59 AM
  5. passing the url from HTML page to a php
    By lordorkus in forum PHP Development
    Replies: 10
    Last Post: January 20th, 2004, 06:36 PM

IMN logo majestic logo threadwatch logo seochat tools logo