how to read stdin from a yii command

matrixrips

New Member
Does anyone know how to read stdin using a custom Command in the Yii framework? I am busy writing a script to process incoming mails through a php script but need functionality from within the Yii framework as well. By default Yii passes the command line arguments in a variable to your run() method when you extend the CConsoleCommand. Any ideas?
 
Top