Skip to content

Instantly share code, notes, and snippets.

@JamieChung
Created December 4, 2011 16:33
Show Gist options
  • Save JamieChung/1430615 to your computer and use it in GitHub Desktop.
Save JamieChung/1430615 to your computer and use it in GitHub Desktop.
namespace Fuel\Tasks;
class Pipe
{
public function run ()
{
// read from stdin
$fd = fopen("php://stdin", "r");
$email_raw = "";
while (!feof($fd))
{
$email_raw .= fread($fd, 1024);
}
fclose($fd);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment