1<?php 2 3if ( PHP_SAPI !== 'cli' ) { 4 exit( 1 ); 5} 6 7file_put_contents( "php://stdout", $argv[1] ); 8if ( isset( $argv[2] ) ) { 9 file_put_contents( "php://stderr", $argv[2] ); 10} 11