Re: url by mail

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



$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@xxxxxxxxx>
To: "php-general" <php-general@xxxxxxxxxxxxx>
Sent: Saturday, June 04, 2005 1:54 PM
Subject:  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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux