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
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.