Struggling with cgi
Posted on 2002-04-23
First I am not a regular Perl user so please bear with me. I have a cgi script that I am currently using in a vb project to log visitors to a FTP site. I need to expand the cgi script to accept a few more parameters. In the existing code there is an extra parameter that is remmed out with the "#" character. I unremmed this argument and then added it to the Print line. I also changed the name of the text file that it is creating/writing to. I did this all locally using Notepad. I Then posted the new cgi script ASCII to the cgi-bin on my server. I also toggled the Execute property of the new cgi script using CHMOD so that is was checked. The new text file is not being created. My first question is does it sound like I have made the changes in a way that has caused my problems?
And second what is this part of the code doing?
# Add new link to database file
open(FILE, ">>$counterfile") || die Can't locate database file $!;
flock(FILE, 2); # blocking write lock
print FILE "This is a test\n"; # First time
I have the rest of the code I just didn't want to post it all. Thanks for any help you can give me.