httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Knipe" <sav...@savage.za.org>
Subject Re: [users@httpd] CGI Error
Date Tue, 06 May 2003 22:17:01 GMT
So tell the script to do something...

#!/usr/bin/perl

print "Content-type: text/html\n";
print "\n\nHello World\n";
exit(0);

or even better...

#!/usr/bin/perl

use CGI;

$q = new CGI;                        # create new CGI object
print $q->header,                    # create the HTTP header
      $q->start_html(''),            # start the HTML
      $q->end_html;                  # end the HTML
exit;

--
me



----- Original Message ----- 
From: "Cody Harris" <hchs@ns.sympatico.ca>
To: <users@httpd.apache.org>
Sent: Wednesday, May 07, 2003 12:10 AM
Subject: Re: [users@httpd] CGI Error


> Oh? But the thing going thought APACHE still doesn't work.
>
>
> [Tue May  6 19:09:00 2003] [error] [client 192.168.0.1] Premature end of
script
>   headers: /home/nsla/public_html/cgi-bin/setup.pl
>
> But ./setup.pl works.
>
> At 07:07 PM 5/6/2003 -0300, you wrote:
> >IT WORKED! OMG THANK YOU THANK YOU THANK YOU! Pls e-mail me at
> >cody@vectec.net offlist please.
> >
> >At 12:02 AM 5/7/2003 +0200, you wrote:
> >>cat setup.cgi > setup.new
> >
> >
> >
> >---------------------------------------------------------------------
> >The official User-To-User support forum of the Apache HTTP Server
Project.
> >See <URL:http://httpd.apache.org/userslist.html> for more info.
> >To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> >For additional commands, e-mail: users-help@httpd.apache.org
>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message