[PHP] Splitting Header and Body of an Email?

2002-03-13 Thread J.Mueller, pro.vider.de GmbH
Hello List, I'm trying aroung to split the header and the body of an email but can't get it to work. First I read in the email: $fp = fopen(php://stdin,r); $count = 0; while (!feof($fp)) { $data = fgets($fp,4096); $data = chop($data); $count = $count + 1; $content[] = $data; }

[PHP] PGP -- PHP

2001-12-22 Thread J.Mueller, pro.vider.de GmbH
Hello Everybody, we have a problem to implement a PGP-function into a PHP-Script. PHP 4.0.6 as CGI, Apache 1.3.11, FeeBSD 4.2 a) PGP from the command line works: % pgps -ato test.sig test.txt -z passphrase b) Calling a little PHP Script $kommando = /usr/local/bin/pgps -ato test.sig test.txt

[PHP] Signing Files with PGP

2001-12-20 Thread J.Mueller, pro.vider.de GmbH
Hello List, I try to setup a script which automatically signs a file with PGP. With the system command this looks like that: % /usr/local/bin/pgps -u Juergen -ato test1.sig ~/test1.txt A private key is required to make a signature. Need a pass phrase to decrypt private key: 1024 bits, Key

[PHP] Email-based PHP-Script

2001-12-18 Thread J.Mueller, pro.vider.de GmbH
Hello List, I'm currently trying to setup a script which is processing incomming emails. So I setup PHP as CGI and did configurate the email like robot |/path/to/the/script.php The little testscript I tried looks like that: ? $fp = fopen(php://stdin,r); while (!feof($fp)) { $BUFFER =

[PHP] Email-based PHP-Script

2001-12-06 Thread J.Mueller, pro.vider.de GmbH
Hello, does anybody know of any documentation how to write scripts that do interact with emails (Majordomo-like), i.e. when an email comes to [EMAIL PROTECTED] that a script is starting which reads the email and completes tasks which are defined within the email? We are using PHP4,

[PHP] Dnsquery

2001-08-17 Thread J.Mueller, pro.vider.de GmbH
Hello, I've tried to execute the system function dnsquery, which works fine from a shell: % dnsquery -h domain.net ;; -HEADER- opcode: QUERY, status: NOERROR, id: 61611 ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 2 ;; domain.net, type = ANY, class = IN domain.net.