Change save path of PHP interactive shell history
问题 I once found a way to disable session logging by php -a , php's interactive shell. How do I turn it back on? Is there a way to send logging to another, file besides ~/.php_history ? I think I may have sent the output to /dev/null . edit: It apparently still saves to the .php_history file. It doesn't save until you exit completely from the shell. I would still like to know how move the history logging to another file. 回答1: No, currently (5.3.10 ubuntu) the filename ~/.php_history is hardcoded