I want to do something like that in php (running on apache2):
require("somecgi.py")
where somecgi.py is a python file with a valid shebang. My apache is configured to execute the cgi-script when opened directly in brower. But i can't bring php to recognize the script as a cgi-script and instead inserts the source code of the script. For campatibility with text based browsers i don't want to use frames. I googled about that problem and found that there is a configuration option cgi.check_shebang_line. I think this could be related to that, but i'm also very new to php and don't kno where to set this option.
My OS: linuxmint KDE 14 (Kubuntu 12.10 derivate)