I wrote a PHP script and I’m trying to read user input from the command line. I started of with which worked fine, but when typing the input the arrow keys didn’t work the way it should. I learned that this could be solved with the -e switch, so it became: Now this worked like a charm in my development
Tag: command-line-interface
Is there a way to interactively install suggested composer packages?
I would like to offer users of my composer package an interface to select and install any of the suggested packages. There seems to be no command line option, and in the API I can only find a …
Symfony Console tab completion
I have an application with a Symfony Console based CLI. The application does not use the Symfony framework, just the Symfony Console component. When I execute I get the usual overview with the name, version, options and registered commands shown. Suppose I just have one command, called “displaykittens”. What I want to be able to do is And have it
How to change the path to php.ini in PHP CLI version
The php that run on the webserver and the CLI version is not using the same php.ini file. If I do a command php –ini, it show this while my web version uses the php.ini in C:wampbinapacheApache2.2.21binphp.ini. This is probably very common for people using wamp. How do I change the Loaded Configuration File to read from C:wampbinapacheApache2.2.21binphp.ini so I
Fatal error: Maximum execution time of 300 seconds exceeded
I keep getting this PHP error: Fatal error: Maximum execution time of 300 seconds exceeded I have tried setting my max_execution_time and my max_input_time settings in php.ini (both apache and cli)…