]> 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 15:17:31 +0000 (16:17 +0100)
commit4b7a36ea1932cfd2245560fa9949dc32fe2d2fc7
tree05a338590e0402dd6ef14ad5d49fff8a84906cb0
parent6f7e3053baefce2a27fba376b020c2ed555821b7
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]