|
|
 |
Re: FN-FORUM CGI Script Error
date posted 30th June 2002 09:18
Hiya,
You need to put the path to the perl interpreter on the first line
(generally known as the shebang) an dit looks something like this...
#!/usr/bin/perl
Check your ISP FAQ or Support section if you don't know your path to perl.
Regards,
Steve
----- Original Message -----
From: "Vavavoom" [EMAIL REMOVED]
To: [EMAIL REMOVED]
Sent: Sunday, June 30, 2002 12:44 AM
Subject: FN-FORUM CGI Script Error
Hi all,
just wondering i there are any Perl wizards out there who can help
me with this...
Ive got a CGI script that updates a set of variables for a flash
file...however, since installing it on my new server space it doesnt seem to
work...
http://www.demo-area.net/cgi-bin/UpdateVars.pl
Is the url of the script - it seems to be returning a path problem or
something...
This is my script:
----------------------------------------
require "subparseform.lib";
&Parse_Form;
$realtext1 = $formdata{'realtext1'};
$realtext2 = $formdata{'realtext2'};
$realtext3 = $formdata{'realtext3'};
$realtext4 = $formdata{'realtext4'};
$realtext5 = $formdata{'realtext5'};
$realtext6 = $formdata{'realtext6'};
$realtext7 = $formdata{'realtext7'};
$realtext8 = $formdata{'realtext8'};
@New =
("realtext1=$realtext1&realtext2=$realtext2&realtext3=$realtext3&realtext4=$
realtext4&realtext5=$realtext5&realtext6=$realtext6&realtext7=$realtext7&rea
ltext8=$realtext8");
open (LOG, ">/usr/www/reed/flash_modules/data.txt") || &ErrorMessage;
print LOG [EMAIL REMOVED]
close (LOG);
print "Content-type: text/html
";
print "Status=Success - Your Comments have beed updated. Please return to
the main area to see the results";
sub ErrorMessage {
print "Content-type: text/html
";
print "Status=Connection Failed Please Check the path to the text File";
exit;
}
-----------------------------------------
I have the "subparseform.lib" file in the cgi-bin directory with the .pl
script.
Any help on this will be very much appreciated.
regards,
vav
--------------------------------------------------------
Precision Guided Media - The Freelance Collaborative
Bristol & Bath, UK
www.precisionguided.com
[EMAIL REMOVED]
|
 |
|