Just want to check I am understanding this correctly. Using the returned $page_source I can look for a string of text in each page? I'd like to use this to crawl our site looking for analytics code and see which pages are missing it.
Thanks - looks good
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Just want to check I am understanding this correctly. Using the returned $page_source I can look for a string of text in each page? I'd like to use this to crawl our site looking for analytics code and see which pages are missing it.
Thanks - looks good
Hi!
Yes, that's correct.
But it's $page_data, not $page_source ;)