Provided allow_url_fopen is enabled, you can just use file_get_contents : $my_var = file_get_contents('http://yoursite.com/your-page.html');