Fetching a Web Page From Your PHP Code
Posted in PHP, Tip & Tricks by admin | May 6th, 2008
To fetch a web page from your PHP application, you could use curl functions or simply open the page with fopen(). But these have some limitations. Your server needs to have PHP with curl enabled, or the PHP configuration should allow scripts to open an URL with fopen().
If that is not the case, you can still fetch a web page by opening a socket connection to the remote host and make HTTP request.
Tags: fetch web from php, fetch web page, php http client, web fetching
