LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


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

Rep: Reputation: 15
Unhappy 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:50 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 235Reputation: 235Reputation: 235
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?
 
Old 12-19-2003, 12:20 PM   #3
cartridge
Member
 
Registered: Sep 2003
Location: BRAZIL
Distribution: Slackware 9.0.0
Posts: 31

Original Poster
Rep: Reputation: 15
how do you expect to run a website without a webserver ?
 
Old 12-19-2003, 12:35 PM   #4
cartridge
Member
 
Registered: Sep 2003
Location: BRAZIL
Distribution: Slackware 9.0.0
Posts: 31

Original Poster
Rep: Reputation: 15
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
 
Old 12-19-2003, 01:23 PM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

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


Reply


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 - Software 2 12-19-2003 11:51 AM
exec cgi from php? barazor Programming 5 01-23-2002 09:12 PM


All times are GMT -5. The time now is 01:13 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