php-windows Digest 21 Apr 2006 08:13:53 -0000 Issue 2943
Topics (messages 26859 through 26860):
Printing
26859 by: Juan Ignacio Borda
Pulling the content of a webpage using the file function.
26860 by: Jim MacDiarmid
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
Does someone have any experience on printing from PHP ?
--- End Message ---
--- Begin 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
--- End Message ---