LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   I Cant Exec a CGI without showing the interpreter. (https://www.linuxquestions.org/questions/linux-software-2/i-cant-exec-a-cgi-without-showing-the-interpreter-127293/)

cartridge 12-19-2003 11:39 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 ?

green_dragon37 12-19-2003 11:46 AM

Assuming Apache is onfigured correctly for PHP, you should name the file a *.php, and just remove the line, as it shouldn't be needed.

Ian

trickykid 12-19-2003 11:51 AM

Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

http://www.linuxquestions.org/rules.php

Other thread can be found here, which was posted first in the wrong forum but will be moved: http://www.linuxquestions.org/questi...&postid=659464


All times are GMT -5. The time now is 09:22 PM.