Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


Closed Thread
  Search this Thread
Old 12-19-2003, 11:39 AM   #1
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

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

Old 12-19-2003, 11:51 AM   #3
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 256Reputation: 256Reputation: 256
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.

Other thread can be found here, which was posted first in the wrong forum but will be moved:

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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:56 PM.

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