I have quite old server (mandriva "perfect setup", ispconfig 2.0, php version 5.2.5) and I have problem with php (reading from stdin). If I put simple script
Code:
<?php
echo "Are you sure you want to do this? Type 'yes' to continue: ";
$handle = fopen ("php://stdin","r");
$line = fgets($handle);
if(trim($line) != 'yes'){
echo "ABORTING!\n";
exit;
}
echo "\n";
echo "Thank you, continuing...\n";
?>
and execute it through console, I get error:
PHP Warning: fopen(php://stdin): failed to open stream: No such file or directory
I have same php.ini on "similar" server where this works without problem.
Thanks for any idea/hint.
Matej
Recent comments
1 day 3 hours ago
1 day 8 hours ago
1 day 9 hours ago
1 day 10 hours ago
1 day 12 hours ago
1 day 16 hours ago
1 day 17 hours ago
1 day 19 hours ago
2 days 8 hours ago
2 days 10 hours ago