$lines = file('http://www.example.com/');
foreach ($lines as $line) {
echo $line . "\n";
}
This ought to do it. Try it and see.
But be aware that if the "allow_url_fopen" was not enable at the compile
time, this won't work.
Mark Cain
- Original Message -
From: "vlad georgescu" <[EMAIL PROTECTED]>
To: "php-general"
Sent: Saturday, June 04, 2005 1:54 PM
Subject: [PHP] url by mail
how can i send a webpage by mail ?
i'v tryed something like that
$fd = fopen ($url, "r");
$contents = fread($fd, 102400);
print $contents;
fclose ($fd);
mail($adr,$url,$contents);
but the message is blank :(
what's the problem ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php