Closed g4br13lg4l4n closed 5 years ago
This code is designed to be run from the PHP command line (CLI) environment, where STDIN
should be defined. Are you running it from a web server instead?
@erickoledadevrel When I tried from a server, I got Use of undefined constant STDIN - assumed 'STDIN'
That's correct, it's only present when running PHP on the command line, as the sample was intended.
(Please search existing issues before creating a new one.)
Sample:
Steps to Reproduce the Problem
Specifications
php -v
):