Gossamer Forum
Home : Products : Links 2.0 : Customization :

Problem with auto submission block mod

Quote Reply
Problem with auto submission block mod
My problem lies here in the modifications to add.cgi

sub set_cookie {

my ($rand) = shift;



use CGI qw(:standard);

$cookie = cookie( -name => 'rand_pass',

-value => "$rand",

-expires => '+1d',

-domain => ''

);

print header( -cookie => $cookie );

open(TMP, ">$rand.txt") || &cgierr("Couldn't open tmp file : $!");

close(TMP);

}


All I get repeatedly is this error message :

CGI ERROR
==========================================
Error Message : Couldn't open tmp file : Permission denied
Script Location : /home/roman365/public_html/noggy/cgi-bin/add.cgi
Perl Version : 5.006001



Can anyone suggest to me what is going wrong?

Its the Auto submission blocker mod by Wiredon.
Quote Reply
Re: [roman365] Problem with auto submission block mod In reply to
Does the rand.txt file exist? If not, you may need to create the it in the data directory manually.


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] Problem with auto submission block mod In reply to
Found out the problem is its trying to write the file in the same dir add.cgi is in, which is the cgi-bin - dont like that as I have to chmod 777 the cgi-bin and then it works. plus it dosent seem to clear up the txt files after itself. Anyone got any ideas on how to get it to write them in a specified location ina directory structure?
Quote Reply
Re: [roman365] Problem with auto submission block mod In reply to
Where can I find a auto submission blocker for links 2.0?

Thanks!
CGI & PHP Script Installation Center

Five Star Review
Quote Reply
Re: [Tim Mousel] Problem with auto submission block mod In reply to
By using the search...

http://www.gossamer-threads.com/...i?post=231201#231201


Leonard
aka PerlFlunkie