I need to ask a value to visitor with a prompt for example
echo "enter a value to continue..."
after this echo the script should prompt and wait for a value followed by enter.
If the visitor enter the value then I execute the next php code .
This php script should work from linux command line
It should work like this
Please enter a password ... (prompt)
The user enter a password , click enter , and the script continue the execution.
With perl it's possible with following way
print "What password ? ";
$pass = <STDIN>;
is there some way to do that with php ?
Thank you