echo "HELLO WORLD";
php://output in not standard out
*** fwrite(STDOUT , 'Hello World!'); ***
#!/usr/bin/php
<?php
fwrite(STDERR , "Are you sure (y/n) : ");
if(fread(STDIN , 1) == 'y') {
fwrite (STDOUT , 'Super awesome..!');
} else {
fwrite (STDOUT , 'This is Lame!');
}
fwrite (STDOUT , PHP_EOL);
#!/usr/bin/php
<?php
$arguments = $argv;
print_r($arguments);
fwrite (STDOUT , PHP_EOL);