Hello, I am using php to do some CLI scripting and in the interest of code-reuse I'm trying to include a php file I've already written into a new script.. Problem is that it was written as a CLI application with the shebang (#!/usr/bin/php -q) at the top.
Because the php of the including script reads this as outside the php code it is printed to the command line at the moment the file is included. Is there some way to suppress this output?
Include file that has shebang at top
1 reply to this topic
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users