LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Closed Thread
  Search this Thread
Old 12-19-2003, 11:39 AM   #1
cartridge
Member
 
Registered: Sep 2003
Location: BRAZIL
Distribution: Slackware 9.0.0
Posts: 31

Rep: Reputation: 15
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 ?
 
Old 12-19-2003, 11:46 AM   #2
green_dragon37
Member
 
Registered: Oct 2002
Location: Lower Alabama
Distribution: Slackware, OpenBSD 3.9
Posts: 344

Rep: Reputation: 31
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
 
Old 12-19-2003, 11:51 AM   #3
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
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
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CGI works from SSI exec, but not from include. SkipHuffman Linux - Software 2 08-25-2005 10:15 PM
exec a C prg in a CGI Perl script jagman Linux - Networking 2 05-31-2005 10:40 AM
Exec CGI within a form field newuser455 General 0 09-12-2004 01:50 PM
I Cant Exec a CGI without showing the interpreter. cartridge Linux - Newbie 4 12-19-2003 01:23 PM
exec cgi from php? barazor Programming 5 01-23-2002 09:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration