LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I Cant Exec a CGI without showing the interpreter. (https://www.linuxquestions.org/questions/linux-newbie-8/i-cant-exec-a-cgi-without-showing-the-interpreter-127290/)

cartridge 12-19-2003 11:25 AM

I Cant Exec a CGI without showing the interpreter.
 
whenever i execute a cgi i got the interpreter printed in the screen
here is my test file: phpinfo.bin

#!/usr/local/bin/php
<? phpinfo(); ?>

when i open the file in the browser i got the first line: #!/usr/local/bin/php
i want to rip it off.
can anyone give me a light ?

trickykid 12-19-2003 11:50 AM

First of all, this has nothing to do with a Question or Suggestion regarding this site, as this is the Website Question and Suggestions forum. Don't ask this again, it will be moved shortly as its been reported.

And is your file executable? And what does executing a CGI have to do with your PHP script?

cartridge 12-19-2003 12:20 PM

how do you expect to run a website without a webserver ?

cartridge 12-19-2003 12:35 PM

i think you did not realized what im tryiing to do
i want to run a php script IN CGI, not with the apache module.
the output of this script says API: CGI
this is what i want.
but without the interpreter line

david_ross 12-19-2003 01:23 PM

Just remove the line. If it isn't being used to determine the interpreter then it isn't needed.

And it obviously isn't needed since it is not being used.


All times are GMT -5. The time now is 10:53 PM.