Re: A sample of system function on Windows!!
| From: | Tom Mathews | Date: | Tue, 06 Mar 2001 12:42:25 +0000 |
| Subject: | Re: A sample of system function on Windows!! | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-5849@lists.php.net to get a copy of this message | ||
This is a segment taken straight from Julie Meloni's PHP Essentials. I've
used a variation of this on my WinNT dev pc with no problems at all.
Tom
<?
$time = time();
$msg = "Sender's Full Name:\t$sender_name\n";
$msg .= "Sender's E-Mail:\t$sender_email\n";
$msg .= "Secret Message?\t$secret_msg\n\n";
putenv("PGPPATH=pubring.gpg");
$clear = "/path/to/data";
$clear .= "$time";
$crypted = "/path/to/secure/data";
$crypted .= "$time";
$fp = fopen("$clear", "w+");
fputs($fp, $msg);
fclose($fp);
system("/usr/local/bin/pgpe -r
'Your Name <you@domain.com>' -o $crypted -a $clear");
unlink("$clear");
?>
Antonio Lopez wrote:
> Can anyone give me a sample code of system function on Windows ?
>
> I've tried it, and it's seems that doesn't work!!!
>
> thank you!!
>
> ===================================================
> Antonio López Luna
> Ingeniería e Integración Avanzadas (Ingenia), S.A.
> Parque Tecnológico de Andalucía
> 29590 - Málaga (Spain)
>
> Tel. 34-952029300 Ext. 386
> Fax. 34-952029309
> Web: http://www.ingenia.es
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net