It freezes here when I’m waiting for input. If I press the “X” button without entering the required STDIN, the CLI freezes
fputs(STDOUT, "Choose Variable"); $variable = trim(fgets(STDIN, 256));
and here when I’m downloading files:
for ($i = 0 ;$i <= $limit; $i++) { $data =...
As the title said, when running a CLI executable, pressing “X” will freeze my cli program, it still can be closed by spamming the X button or using cmd taskkill. But it is still kinda annoying. Hope someone can help me. Thank you for reading
Is there a way to create a “Press Any Key To Exit” in PHP? So it only takes 1 input in STDIN (and the user doesn’t have to press "Enter) and then ends the script.
I tried
`<?php $storagelocation = exo_getglobalvariable(‘HEPubStorageLocation’, ‘’);
echo $storagelocation;
?>`
The ouput is “Undefined”. How can I solve the problem?