Shebang problems
I had this problem that whenever I ran a PHP script, the shebang was printed to the output. Here was my setup that caused the problem.
PHP_file_1 was executed from a web browser and it contained a shebang. PHP_file_2 was included via include_once() from inside PHP_file_1 and it contained a shebang.
On my server, the main file you type in the address bar must have a shebang in order to run, otherwise I get a fatal error. But, the file that was included did not have to have the shebang in order to run. So, the moral of the story is, if a PHP file is ran from within another PHP file, you don't have to have the shebang in the second file that is included.
That seems weird to me, but that's what worked. If anyone has a reason for this, or reads this as incorrect, please let me know at mailto:webmaster@wsams.org ».