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 ? |
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? |
how do you expect to run a website without a webserver ?
|
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 |
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. |