When i run php -a It brings up a handy shell for testing code quickly along with a history of every line I type. Is there any way to clear this history?
Using php 5.5.9 if this makes any difference
When i run php -a It brings up a handy shell for testing code quickly along with a history of every line I type. Is there any way to clear this history?
Using php 5.5.9 if this makes any difference
For clear history you can use readline_clear_history()
readline_clear_history ( void );
This function clears the entire command line history.
Return Values
Returns TRUE
on success or FALSE
on failure.
For Windows users, you can find the .php_history file in your home directory as well. I found mine at C:\Users\{my_name}\.php_history