• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 371
  • Last Modified:

PHP Script to check if external page contains a certain html tag

How would I go about getting a PHP script to check an external site's page x for html tag x and return that data on the same server where the script is activated?  So I mean
user enters target url
script checsk that url's home page in  background for tag x
Returns that tag plus content between opening and closing tag to page b (result page) on the same server.
Are there scripts for that out there? Any advice on how to build one?
1 Solution
Loganathan NatarajanLAMP DeveloperCommented:
You can check with cURL, ref. example
     $weather_feed = file_get_contents("http://weather.yahooapis.com/forecastrss?p=14607&u=f");
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now