Re: HTML Mail script reading text from MySQL

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

 



On 6/2/06, Tom Chubb <tomchubb@xxxxxxxxx> wrote:
What I meant is say a page outputs an HTML table eg:

<table width="100" cellspacing="0" cellpadding="0">
[snipped]
</table>

But I want to get that code into the $message variable.
I have written many mail scripts before it's just getting the data into the
variable.
Should I be using something like CURL?

This other script cannot/should not be modified? Then you can
either use shell_exec to execute the script and get the output

$message = shell_exec('the/other/script.php');

or use file_get_contents():

$message = file_get_contents('http://domain/script.php?a=b');

or if the other script is also php look into output buffering.
php.net/ob_start, php.net/ob_get_contents.

Rabin

--
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