Hi All,
Yesterday I was writing a command line FTP application - and hit a problem.
I've written quite a few command line utilities in PHP, but none which required user input before.
I got the prototype fully working and started to write the bit where I needed user input - user id, password, file names etc - and couldn't get readline() to work because the standard build of PHP doesn't have the option switched on at compile time.
Please can you suggest ways in which I can get user input (using PHP) as required into comand line PHP without resorting to recompiling with the -readline option. This would be no problem with a web front-end...but this will be used in a command line window on machines which don't have web-servers on them.
I'd like to input plain text and passwords as required - passwords would need to be invisible or *'d on entry.
Any ideas?