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 ? |
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 |
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. |