]> git.mxchange.org Git - quix0rs-gnu-social.git/commit
console.php terminal script provides interactive PHP console in StatusNet environment...
authorBrion Vibber <brion@pobox.com>
Fri, 6 Nov 2009 13:31:39 +0000 (14:31 +0100)
committerBrion Vibber <brion@pobox.com>
Fri, 6 Nov 2009 13:47:22 +0000 (14:47 +0100)
commitb932bd6addcf00bec1d9f6a37f3f222a90a726be
treec6987989a158bc9af61a30562c3fe1d020fd0533
parentfebcdcb6a09afac4e82218d6971378d5302cd0b6
console.php terminal script provides interactive PHP console in StatusNet environment, handy for testing!

Uses readline for line input editing if available; falls back to bash+readline if not native, and takes fgets() in worst case.
Currently a bit awkward in that each input line is parsed separately, so loops and function defs have to be squished to one line.
scripts/console.php [new file with mode: 0755]