-6

I have an url looks like www.mywebsite.com/item_id=abc. Inside that url's page, there will be a parameter showing up feedback information if the item has feedback (e.g: feedback_info). Otherwise, there will be no that parameter. My task is to check each url like that and note if it has feedback or not. But there are too many urls to check by hand, so I need to create a tool that I can paste a bunch of that urls into it, then click check, if the url's page has feedback_info parameter, then publish the result OK | url. Otherwise, it doesn't show up the result. How can I do that? Thanks so much for your help.

Mohammad
  • 21,175
  • 15
  • 55
  • 84

1 Answers1

0

I'm not going to write your code for you, but here are the pointers for PHP.

  • Use file_get_contents() to fetch the HTML from the page.
  • Use strpos() to see if a given string exists in the HTML.
Markus AO
  • 4,771
  • 2
  • 18
  • 29