this happens with all the perl scripts i try to run
weither they are .pl or .cgi
so this essentially says that the problem in the server but
i checked everything that could probably cause this (with help
of the internet) and everything was correct
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
k here's the code
about 163 lines so i've taken only the parts that matter
this first line was the standard /usr/blah/bin or something
i pointed it to the perl dir yesterday didn't matter
[syntax="perl"]#!C:\Perl\bin\perl.exe
### XUpload v2.5
### SibSoft.net (26 Jan 2006)
use strict;
use CGI::Carp qw(fatalsToBrowser);
use XUploadConfig;
use HTML::Template;
use CGI qw/:standard/;
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
in the IIS 6.0 mapping the cgi file pointed towards php-cgi.exe
and it needed to be towards the perl.exe
but now i get the following error:
i checked but all the files are in the correct locations
HTML::Template->new() : Cannot open included file /Templates/default.html : file not found. at HTML/Template.pm line 1616
HTML::Template::_init_template('HTML::Template=HASH(0x1884bf0)') called at HTML/Template.pm line 1189
HTML::Template::_init('HTML::Template=HASH(0x1884bf0)') called at HTML/Template.pm line 1083
HTML::Template::new('HTML::Template', 'filename', '/Templates/default.html', 'die_on_bad_params', 0) called at D:\Website\cgi-bin\upload_status.cgi line 43