Results 1 to 2 of 2

Thread: how to find text on website?

  1. #1

    Thread Starter
    Member
    Join Date
    Mar 2007
    Posts
    47

    how to find text on website?

    Hello i have a fansite and well i want to pull certain players statistics of the main gaming website so i can display it on my own website.
    I know the logical behind it but i just dont know the code to do it.

    Basically on the main gaming website there is a table, in the first column is my name, so i need to write some code which searches the table on that URL for my name, once my name is found then i need to then pull the all the text on that row and then bring that text back to my website

    i know the code is relatively easy but for the life of me i cant remember php.

    Can anyone help me here please?

    much appreicate

  2. #2
    PowerPoster
    Join Date
    Sep 2003
    Location
    Edmonton, AB, Canada
    Posts
    2,629

    Re: how to find text on website?

    you can fetch the HTML using file_get_contents(), or cURL if you'd prefer. then, you can use a regular expression and preg_match() to search for whatever text you're trying to find.

Posting Permissions

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



Click Here to Expand Forum to Full Width