The script only came with the script "vote.cgi and a readme.txt. So I put the proper SHEBANG #!/usr/bin/perl, uploaded the script into me UNIX server in the ASCII mode and I set up a page (testing.HTML) on my site to call the script. and I set the permissions on the script to 755.
So, I tried it out and it all works except for one thing. The password that leads to the administrators area works and if you give an incorrect password, that works to. And viewers can ad their own question. If they do not fill out correctly, it tells you your error.
HERE IS WHAT DOES NOT WORK: When I, or a user fill in the fields for a new vote, it tells you that your request has been done successfully and to reload page. But after the page reloads, The new vote I just added is not there.
In the readmefile.txt, they talk about setting the data directory's permissions to 777......What data directory's????
And in the script its self:
# If you aren't going to put the data directory in the same directory as this
# script, enter the server path (not the URL) to the data directory.
$data_path = "vote";
I am new with this pearl and cgi stuff, But I bet that $data_path = "vote"; is were my problem is, I think??? What do I need to do here, make a file called vote.txt or vote.save????
I'm stuck on this one and I can not find an email or any contact info in the script or on the download site.
Thanks in advace, KG2RG
Yup... Create the data directory, change permissions to 777 and provide the server path to that directory on line 23. With well-known scripts such as shavenferret's, you should get creative naming the directories (ie d474 for data or something similar).
hth