[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-windows
Subject:    [PHP-WIN] Pulling the content of a webpage using the file function.
From:       "Jim MacDiarmid" <jim.macdiarmid () comcast ! net>
Date:       2006-04-21 8:13:44
Message-ID: 000901c6651b$826b24a0$6501a8c0 () jdm6763
[Download RAW message or body]


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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic