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? Quote 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() Quote Link to comment https://forums.phpfreaks.com/topic/72667-check-a-webpage/#findComment-366383 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.