Hi guys,
I need a php script that will look for specific text on a webpage. If the text is there it will echo something, if its not there it will echo something else.
Hope someone can come up with something :D
Printable View
Hi guys,
I need a php script that will look for specific text on a webpage. If the text is there it will echo something, if its not there it will echo something else.
Hope someone can come up with something :D
Its ok guys, I got it myself:
Thanks anyway ;)Code:$link = "http://www.test.com";
$linkcontents = file_get_contents($link);
$needle = "1.0.0";
if (strpos($linkcontents, $needle) == false) {
echo "String not found";
} else {
echo "String found";
}