Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/public_html/ -q
- <?php
- /* Read the message from STDIN */
- $fd = fopen("php://stdin", "r");
- $email = ""; // This will be the variable holding the data.
- while (!feof($fd)) {
- $email .= fread($fd, 1024);
- }
- fclose($fd);
- /* Saves the data into a file */
- $fdw = fopen("pipemail.txt", "w");
- fwrite($fdw, $email);
- fclose($fdw);
- /* Script End */
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement