We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

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

rhandalthor
rhandalthor asked
on
Medium Priority
378 Views
Last Modified: 2012-05-11
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?
Comment
Watch Question

LAMP Developer
CERTIFIED EXPERT
Commented:
Unlock this solution with a free trial preview.
(No credit card required)
Get Preview
Gk

Commented:
     $weather_feed = file_get_contents("http://weather.yahooapis.com/forecastrss?p=14607&u=f");
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a free trial preview!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.