Reply to Re: Calling PHP email program from a Perl Script

Your name:

Reply:


Posted by Toby A Inkster on 04/03/07 08:14

rahulthathoo wrote:

> After i finish some amount of computation using a perl script, i need
> to send out an email to a receipient which can change and is known to
> the Perl script. Is there a way to call the email.php(the php program
> to send out the email) passing to it the recipient email ID, from the
> perl script?

In Perl:

system("php email.php 'foo@example.com'");

In PHP:

<?php
$recip = $_SERVER['argv'][1];
if (!isset($recip))
$recip = 'default-address@example.com';
?>

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Geek of ~ HTML/SQL/Perl/PHP/Python*/Apache/Linux

* = I'm getting there!

[Back to original 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

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