I wonder if the
$ php -a
have something similar to ruby's ~/.irbrc file.
basically I want to require 'bootstrap.php';
automatically when I start php -a
For future references:
I solved this by using http://phpsh.org/
and using an alias of
alias myphpsh='phpsh bootstrap.php'
From: http://www.php.net/manual/en/features.commandline.interactive.php
Note:
Files included through auto_prepend_file and auto_append_file are parsed in this mode but with some restrictions - e.g. functions have to be defined before called.