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 <[EMAIL PROTECTED]>' -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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED]
-- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]