Re: url by mail

From: Date: Sun, 05 Jun 2005 02:58:00 +0000
Subject: Re: url by mail
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-216393@lists.php.net to get a copy of this message
$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 ?

« previous php.general (#216393) next »