Advertisement
Guest User

Untitled

a guest
Mar 25th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #!/public_html/ -q
  2. <?php
  3. /* Read the message from STDIN */
  4. $fd = fopen("php://stdin", "r");
  5. $email = ""; // This will be the variable holding the data.
  6. while (!feof($fd)) {
  7. $email .= fread($fd, 1024);
  8. }
  9. fclose($fd);
  10. /* Saves the data into a file */
  11. $fdw = fopen("pipemail.txt", "w");
  12. fwrite($fdw, $email);
  13. fclose($fdw);
  14. /* Script End */
  15. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement