Click here to Skip to main content
15,922,630 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: imege resizing Pin
Anonymous9-May-03 4:13
Anonymous9-May-03 4:13 
Generalcgi refresh question Pin
bob_brown_20005-May-03 8:30
bob_brown_20005-May-03 8:30 
GeneralRe: cgi refresh question Pin
markkuk5-May-03 11:57
markkuk5-May-03 11:57 
GeneralRe: cgi refresh question Pin
bob_brown_20005-May-03 12:27
bob_brown_20005-May-03 12:27 
GeneralInterdev Environment Pin
Touson2-May-03 3:28
Touson2-May-03 3:28 
GeneralRe: Interdev Environment Pin
Roger Wright2-May-03 7:13
professionalRoger Wright2-May-03 7:13 
GeneralRe: Interdev Environment Pin
Touson2-May-03 8:24
Touson2-May-03 8:24 
GeneralCGI programming Pin
K. Shaffer1-May-03 16:08
K. Shaffer1-May-03 16:08 
I am new to CGI programming in Perl. I created the following code and saved the file as helloworld.cgi. If you try to open the location of the cgi, it should display hello world in html format.

This is the code:
#!usr/bin/perl
use warnings;
use strict;
print "Content-type:text/html\n\n";
print "<html><head><title>Hello World</title></head>\n";
print "<body>\n";
print "<h2>Hello World</h2>\n";
print "</body></html>\n";



This is the location:
http://people.eecs.ku.edu/~shaffer/cgi-bin/helloworld.cgi

I get the following error:
Server error!
Error message:
Premature end of script headers: helloworld.cgi

Is this a file permission problem or is it something else?
Any help would be appreciated.

thanks

kevin






Kevin Shaffer
Student of Computer Science
University of Kansas
kshaff03@msn.com
GeneralRe: CGI programming Pin
Jon Sagara1-May-03 18:25
Jon Sagara1-May-03 18:25 
GeneralRe: CGI programming Pin
K. Shaffer1-May-03 18:37
K. Shaffer1-May-03 18:37 
GeneralGenerate a word file from browser. Pin
George229-Apr-03 17:51
George229-Apr-03 17:51 
GeneralRe: Generate a word file from browser. Pin
wrda29-Apr-03 22:41
wrda29-Apr-03 22:41 
GeneralRe: Generate a word file from browser. Pin
George230-Apr-03 2:13
George230-Apr-03 2:13 
GeneralRe: Generate a word file from browser. Pin
wrda30-Apr-03 4:14
wrda30-Apr-03 4:14 
GeneralRe: Generate a word file from browser. Pin
Sarvesvara (BVKS) Dasa30-Apr-03 18:03
Sarvesvara (BVKS) Dasa30-Apr-03 18:03 
GeneralRe: Generate a word file from browser. Pin
George21-May-03 16:26
George21-May-03 16:26 
GeneralRe: Generate a word file from browser. Pin
Sarvesvara (BVKS) Dasa1-May-03 23:12
Sarvesvara (BVKS) Dasa1-May-03 23:12 
GeneralRe: Generate a word file from browser. Pin
George22-May-03 16:43
George22-May-03 16:43 
GeneralRe: Generate a word file from browser. Pin
Sarvesvara (BVKS) Dasa2-May-03 18:27
Sarvesvara (BVKS) Dasa2-May-03 18:27 
GeneralRe: Generate a word file from browser. Pin
George24-May-03 4:27
George24-May-03 4:27 
GeneralRe: Generate a word file from browser. Pin
Sarvesvara (BVKS) Dasa4-May-03 5:41
Sarvesvara (BVKS) Dasa4-May-03 5:41 
GeneralRe: Generate a word file from browser. Pin
George24-May-03 16:39
George24-May-03 16:39 
GeneralRe: Generate a word file from browser. Pin
Sarvesvara (BVKS) Dasa5-May-03 4:38
Sarvesvara (BVKS) Dasa5-May-03 4:38 
GeneralRe: Generate a word file from browser. Pin
basementman5-May-03 6:20
basementman5-May-03 6:20 
GeneralRe: Generate a word file from browser. Pin
George25-May-03 19:11
George25-May-03 19:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.