0

I want to be able to capture a web page for further processing in PHP rather than having the page displayed on screen.

Is there a way to do that?

Specifically

I want to take the results of this URL and parse it in PHP

http://rpc.geocoder.us/service/namedcsv?zip=20502

Thanks for helping.

2
  • 1
    Now I'm second guessing myself.. Your title and explanation seem to be very different. Are you trying to scrape the content from that link? Or capture your own output before its sent to the screen? Commented Mar 15, 2012 at 13:05
  • Yes. Sorry I will reread my question and clear it up. Commented Mar 15, 2012 at 13:08

1 Answer 1

2

You can use file_get_contents().

$web_page_as_string = file_get_contents('http://rpc.geocoder.us/service/namedcsv?zip=20502');
do_magic($web_page_as_string);
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.