[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 190
  • Last Modified:

server

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....
0
perlperl
Asked:
perlperl
1 Solution
 
dnojcdCommented:
dont  you have to open the file before printing :-)
0
 
periwinkleCommented:
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 CGI.pm 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.
0

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now