Sanjeewa Fernando
2009-06-04 01:01:24 UTC
Hi,
I have tried to use html::template for the first time and tried to run the script shown in the synopsis of cpan documentation.
#!/usr/bin/perl -w
use HTML::Template;
# open the html template
my $template = HTML::Template->new(filename => 'test.tmpl');
# fill in some parameters
$template->param(HOME => $ENV{HOME});
$template->param(PATH => $ENV{PATH});
# send the obligatory Content-Type and print the template output
print "Content-Type: text/html\n\n", $template->output;
The following error is logged in to error log,
failed to open log file
fopen: Permission denied
[Wed Jun 3 12:38:13 2009] [error] [client 218.215.16.114]
Premature end of script headers: /cgi-bin/bpo/test.cgi
When I checked with the hosting server admin their reply is they have
restricted the use of FOPEN function and to use WGET or CURL.
Not sure how to resolve this error could someone please help?
Regards,
Sanjeewa.
_________________________________________________________________
Looking for a new car this winter? Let us help with car news, reviews and more
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fsecure%2Dau%2Eimrworldwide%2Ecom%2Fcgi%2Dbin%2Fa%2Fci%5F450304%2Fet%5F2%2Fcg%5F801459%2Fpi%5F1004813%2Fai%5F859641&_t=762955845&_r=tig_OCT07&_m=EXT
I have tried to use html::template for the first time and tried to run the script shown in the synopsis of cpan documentation.
#!/usr/bin/perl -w
use HTML::Template;
# open the html template
my $template = HTML::Template->new(filename => 'test.tmpl');
# fill in some parameters
$template->param(HOME => $ENV{HOME});
$template->param(PATH => $ENV{PATH});
# send the obligatory Content-Type and print the template output
print "Content-Type: text/html\n\n", $template->output;
The following error is logged in to error log,
failed to open log file
fopen: Permission denied
[Wed Jun 3 12:38:13 2009] [error] [client 218.215.16.114]
Premature end of script headers: /cgi-bin/bpo/test.cgi
When I checked with the hosting server admin their reply is they have
restricted the use of FOPEN function and to use WGET or CURL.
Not sure how to resolve this error could someone please help?
Regards,
Sanjeewa.
_________________________________________________________________
Looking for a new car this winter? Let us help with car news, reviews and more
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fsecure%2Dau%2Eimrworldwide%2Ecom%2Fcgi%2Dbin%2Fa%2Fci%5F450304%2Fet%5F2%2Fcg%5F801459%2Fpi%5F1004813%2Fai%5F859641&_t=762955845&_r=tig_OCT07&_m=EXT