If I have a CLI script foo written in PHP that requires various command line parameters, can I call foo from another PHP script by first writing to $ argv and $ argc and then executing include('foo')? (Suppose foo starts with <?php, and not the hash-bang directive.)
Even if it works, why is this a bad idea? (except namespace collision).
user213154
source
share