Softwares |
Main /
PrematureEndOfScriptHeadersErrorMain.PrematureEndOfScriptHeadersError HistoryHide minor edits - Show changes to markup Changed line 23 from:
to:
Changed lines 1-7 from:
Sample hello world script #!/usr/local/bin/perl # hello.pl -- my first perl script! print "Content-type: text/html\n\n"; print "Hello, world!\n"; to:
(:Google1:) (:Googlemm:) Added lines 4-20:
Finding Reason for Errors.Sample hello world script.. (:table border=1 width=70% bgcolor=#cccc99 cellspacing=0 :) (:cellnr:) #!/usr/local/bin/perl # hello.pl -- my first perl script! print "Content-type: text/html\n\n"; print "Hello, world!\n"; (:tableend:) Where to check for errors Changed lines 25-33 from:
Tracking Errors in the Script perl -wc helloworld.pl to:
Upload your script is ASCII mode -Upload your Perl script in ASCII mode. -Set the permission of the file to 755, which allows the script to be executed by everybody. Tracking Errors in the Script (:table border=1 width=70% bgcolor=#cccc99 cellspacing=0 :) (:cellnr:) perl -wc helloworld.pl (:tableend:) Changed line 41 from:
Running it without the syntax check options: to:
Running it without the syntax check options: Changed lines 43-45 from:
perl -w helloworld.pl
to:
(:table border=1 width=70% bgcolor=#cccc99 cellspacing=0 :) (:cellnr:) perl -w helloworld.pl (:tableend:) If something strange has gone wrong with your program and youre not sure where you should look for help, try the -w switch first. It will often point out exactly where the trouble is. (:Google1:) (:Googlemm:) Added lines 1-8:
Sample hello world script #!/usr/local/bin/perl # hello.pl -- my first perl script! print "Content-type: text/html\n\n"; print "Hello, world!\n"; Changed lines 11-14 from:
http://httpd.apache.org/docs/1.3/suexec.html to:
Added lines 1-20:
Tracking Errors in the Script perl -wc helloworld.pl Will cause the Perl interpreter to check your script for syntax errors. Running it without the syntax check options: perl -w helloworld.pl
|