[Wolves] Php question
Jon Farmer
jonfarmer at enta.net
Tue Jan 18 09:18:48 GMT 2005
Wayne Morris wrote:
> I have a php which correctly displays data from a mysql database.
> I have a php page which allows entry of text which is then emailed to a
> mailing list.
> I want to mail the data to the mailing list, but when I copy/paste the
> first page (below) into the text input form:
OK If I understand your question correctly you want to mail the output
of a php page and you want this called by another php page.
I would say the best way to do this would be via a exec or system call
something like.
<?php
exec("/usr/local/bin/curl http://myserver/output.php | /usr/bin/mail -s
/"My Results/"",$result,$resultvar);
?>
--
Jon Farmer
Systems Programmer
Entanet International Ltd
Tel: 0870 770 9669 Mob: 07795 118140
More information about the Wolves
mailing list