On Jan 30, 2008 4:08 PM, Greg Donald <gdonald@xxxxxxxxx> wrote: > On 1/30/08, Nathan Nobbe <quickshiftin@xxxxxxxxx> wrote: > > php has an interactive shell; php -a. > > therein you have access to anything in the language your > > include path, or the local disc. > > You obviously have a very different understanding of the word "interactive". > > `php -a` seems pretty broken to me: > > > php -a > Interactive mode enabled > > sprintf( '%f^[[3~^[[3~ > > My backspace doesn't work. Ctrl-C to start over. I'm guessing I > would lose any local variables at this point? > > > php -a > Interactive mode enabled > > echo 'foo'; > > So where's the output? > > > > php -a > Interactive mode enabled > > ^[[A > > Aww.. no up-arrow history either? > > `php -a` doesn't work very well from where I sit. php > $rf = new ReflectionClass('Iterator'); php > echo $rf; Interface [ <internal> interface Iterator implements Traversable ] { - Constants [0] { } - Static properties [0] { } - Static methods [0] { } - Properties [0] { } - Methods [5] { Method [ <internal> abstract public method current ] { } Method [ <internal> abstract public method next ] { } Method [ <internal> abstract public method key ] { } Method [ <internal> abstract public method valid ] { } Method [ <internal> abstract public method rewind ] { } } } up arrow works just fine. history is gone if it crashes, but if you exit gracefully, eg. with quit, then the history will be there. maybe youre using debian or some other silly os; i run gentoo and there is no prob w/ php -a. although i wont lie; it seems to be jacked on all the debian systems ive tried :( > And since you can't see it I will also mention that IRB has beautiful > syntax highlighting. nice > Every time I ever went to the PEAR site I played a game of 'how many > times do I have to click before I dig down deep enough to realize the > docs aren't really there'. thats cause a lot of them are on the php site itself. again, ill admit, the docs are scattered, but they are there: http://us2.php.net/manual/en/ref.apc.php http://us2.php.net/manual/en/ref.apd.php > Meanwhile every gem you install with Ruby has an rdoc package with > complete api docs for the gem. You just fire up your local `gem > server` and browse to http://localhost:8808/ to view complete api > docs, offline or on. you can host the php docs on a local webserver if you like, or download them; there is even a chm version: http://us2.php.net/docs-echm.php -nathan