mirror of
https://github.com/tildeclub/site.git
synced 2026-11-07 05:15:39 +00:00
forgot a few files in last push.
This commit is contained in:
1 parent
7ba6e46df1
commit
f8d4440255
7 files changed
+378
No files matched your search
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
$cmd='/usr/bin/sendmail.postfix -t -i -f [email protected]';
|
||||
$ds=[0=>['pipe','r'],1=>['pipe','w'],2=>['pipe','w']];
|
||||
$p=proc_open($cmd,$ds,$pipes);
|
||||
fwrite($pipes[0],"To: [email protected]\r\nSubject: proc_open test\r\n\r\nhi\r\n"); fclose($pipes[0]);
|
||||
$stdout=stream_get_contents($pipes[1]); fclose($pipes[1]);
|
||||
$stderr=stream_get_contents($pipes[2]); fclose($pipes[2]);
|
||||
$rc=proc_close($p);
|
||||
var_dump(['rc'=>$rc,'stderr'=>$stderr,'sendmail_path'=>ini_get('sendmail_path')]);
|
||||
Reference in new issue
Block a user