Can’t get the php console to work, even tough node.js is (well, was…) running just fine, untill it didn’t and made me look into the php to have some log information.
First, what I get on the php when I run it on my server:
Hello. Noobhub online. Warning: stream\_select(): supplied argument is not a valid stream resource in /var/www/flashgames/mobile/console.php on line 52 Warning: stream\_select(): supplied argument is not a valid stream resource in /var/www/flashgames/mobile/console.php on line 52 Warning: stream\_select(): supplied argument is not a valid stream resource in /var/www/flashgames/mobile/console.php on line 52 Warning: stream\_select(): supplied argument is not a valid stream resource in /var/www/flashgames/mobile/console.php on line 52 .......
What and where the problem seems to be:
if(non\_block\_read(STDIN, $x)) {
already you can see a problem there, where “STDIN” is not formatted right for a php variable…
My search on “STDIN” on the page gave me this line:
$in = fopen('php://stdin', 'r');
So I thought to myself, replace “STDIN” with “$in” and the problem should be solved.
Of course I was wrong.
Can you give me hint in the right direction? At this point I had node.js running just fine on our server, working like a charm, today, it doesn’t, so I’ll need, or want, the console to see some messaged from it so I’ll be able to debug it.
Thanks again for all your effort!
Yuval.