LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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


Reply
  Search this Thread
Old 09-18-2003, 11:51 PM   #1
WorldBuilder
Member
 
Registered: Mar 2003
Location: Massachusetts, USA
Distribution: RH 8, Solaris, Windoze eXPunged
Posts: 520

Rep: Reputation: 30
I think I need a perl, apache, cgi GOD


I have asked here, I have asked there, I have asked everywhere... Ok, I apologize for doing this, but I am going to place a link to a forum that isn't even an LQ one! My question is there. I cannot type anymore tonight! PLEASE, PLEASE, PLEASE, if someone could read that entire forum thread (I know it's long) and tell me what is wrong, I would name my first (wait, I already have one), I mean next kid after you! It is important, and I don't think I could explain it better than you would find at http://forums.devshed.com/showthread...882#post377882

Thank you!
Thank you!
Thank you!

Chris
 
Old 09-21-2003, 10:49 AM   #2
idaho
Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: RedHat, Libranet
Posts: 438

Rep: Reputation: 30
I saw you asking why this first code runs:
~~~~~~~~~~~~~~~
#!/usr/bin/perl
print "Content-type: text/plain\n\n";
foreach $var (sort(keys(%ENV))) {
$val = $ENV{$var};
$val =~ s|\n|\\n|g;
$val =~ s|"|\\"|g;
print "${var}=\"${val}\"\n";
}
~~~~~~~~~~~~~~~
But this doesn't

#!/usr/bin/perl
print "Content-type: text/html\n\n";
$message = "Hello World!";
print $message;
~~~~~~~~~~~~~~~

Try replacing text/html with text/plain in the second code snippet.
 
  


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
have apache deliver the output of perl cgi scripts immidiately fibbi Linux - Software 2 07-13-2004 01:17 PM
perl OH MY GOD!!!!!! youssefe2k Programming 1 04-28-2004 11:17 PM
Enabling CGI and Perl on Apache 2.0.47 666Snake666 Linux - Newbie 1 09-17-2003 02:20 PM
Disallowing apache to use cgi and perl cannus Linux - General 8 12-21-2002 06:51 PM
You a Perl GOD? Prove it! sewer_monkey Programming 14 06-16-2002 11:04 PM


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