Pulling the content of a webpage using the file function.

From: Date: Fri, 21 Apr 2006 08:13:44 +0000
Subject: Pulling the content of a webpage using the file function.
Groups: php.windows 
Request: Send a blank email to php-windows+get-26860@lists.php.net to get a copy of this message
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

« previous php.windows (#26860) next »