Pulling the content of a webpage using the file function.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, I'm trying to use the file command to pull the content of a web page. If
I run the script on my local server I get "Page can not be displayed".  If I
run the script on my remote web host, it works fine.

It's avery simple script too.  Hopely someone can help.. 

<?php

$url = "http://www.blizzard.com/";;
$data = implode("", file($url)); 
print_r($data);

?>

TIA,
Jim

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux