Drop into read-eval-print loop from PHP code?
Posted
by Mickey
on Stack Overflow
See other posts from Stack Overflow
or by Mickey
Published on 2010-05-13T20:08:00Z
Indexed on
2010/05/13
20:44 UTC
Read the original article
Hit count: 185
php
Is there a way to drop into a read-eval-print loop from inside PHP code during execution, in a script that was run from the command line? That is, like php -a or phpsh? Or do I have to re-implement a REPL from scratch? I can't find any way to do it.
To clarify: the reason why I need to do this is that I want to automatically include all the files in my project once the REPL starts, instead of having to manually include everything by hand.
© Stack Overflow or respective owner