Re: Weekly reporting. How to?
| From: | Henrik Hansen | Date: | Thu, 01 Nov 2001 21:11:28 +0000 |
| Subject: | Re: Weekly reporting. How to? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-73181@lists.php.net to get a copy of this message | ||
Simon.de.Kraa@icl.nl (Kraa De Simon) wrote:
> Hello,
>
> I want to send a weekly report to a mailinglist.
>
> I would like to automate the process and use a cron job to execute 'php.exe
> weekly.php' or something.
>
> I could gather the information, put it in a string and pass the string to
> mail().
>
> But...is it also possible to "grab" the html output of a .php file already
> used in the application (some report) and e-mail it to someone?
yeah fopen can open files over http also allowing you to get the
output of a script and put it in a string.
--
Henrik Hansen