You are here: Re: [PHP] url by mail « PHP « IT news, forums, messages
Re: [PHP] url by mail

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация