|
Posted by "Mark Cain" on 06/05/05 05:58
$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" <startx@gmail.com>
To: "php-general" <php-general@lists.php.net>
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 ?
Navigation:
[Reply to this message]
|