1<?php 2 3if ( PHP_SAPI !== 'cli' ) { 4 exit( 1 ); 5} 6 7$input_data = stream_get_contents( STDIN ); 8echo $input_data; 9