|
|
 |
Re: FN-FORUM CGI Script Error
date posted 30th June 2002 10:22
Thanks Steve, but I did have this in the script originally.. my new host
says that i do not need to do this. Apparently any ".pl" script in the
cgi-bin will automatically be able to run Perl...
Any other ideas?!
TIA
vav
--------------------------------------------------------
Precision Guided Media - The Freelance Collaborative
Bristol & Bath, UK
www.precisionguided.com
[EMAIL REMOVED]
----- Original Message -----
From: "Steve Webster" [EMAIL REMOVED]
To: [EMAIL REMOVED]
Sent: Sunday, June 30, 2002 9:19 AM
Subject: Re: FN-FORUM CGI Script Error
> 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]
>
>
>
> ================================================================
> = ************************* SilkPHP ************************** =
> = ---------> Free PHP Scripts for your web sites = ******************* www.silkphp.com/?fl ******************** =
> ================================================================
>
> Sponsor the forum for as little as £1 at:
>
> http://www.freelancers.net/cgi/sponsor.cgi?action=show
>
>
> Freelancers and Freelance Jobs:
> http://www.freelancers.net
>
> Forum FAQs:
> http://freelancers.netrickery.com
>
> To unsubscribe please email:
> [EMAIL REMOVED]
>
> If you have difficulties unsubscribing please email:
> [EMAIL REMOVED]
>
|
 |
|