rockinaway Posted October 10, 2007 Share Posted October 10, 2007 I want to be able to check a webpage for a piece of text/hyperlink.. How would I do this? Link to comment https://forums.phpfreaks.com/topic/72667-check-a-webpage/ Share on other sites More sharing options...
GingerRobot Posted October 10, 2007 Share Posted October 10, 2007 You'll first need to get the contents of the webpage which can, in most cases, be achieved with the use of the file_get_contents() function. In some cases you'll need to use cURL, however. You'll then need to use regular expressions to find your text/hyperlink: preg_match() Link to comment https://forums.phpfreaks.com/topic/72667-check-a-webpage/#findComment-366383 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.