i recently installed apache webser on win 2K pro

I am trying to run CGI pages...

my scripts terminates
my $document = Win32::OLE -> GetObject($wordfile) || die "canno ";
print "before...............\n";

it does not prints before....
Who is Participating?
You have to print out a header before you print to the web page;  there's a couple of ways to do that.

(1) (preferred method) use the library:

use CGI qw(:standard);
print header();

(2) Print the header directly:

print "Content-type: text/html \n\n";

One of these two methods has to occur in your program prior to any other print out.
dont  you have to open the file before printing :-)
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.