Hi, If you have visited www.hotornot.com you will see that they use cgi scripts, I was wondering if anyone had got a PHP version of the scripts that they use?
Thanks
Chris Davis
Hi, If you have visited www.hotornot.com you will see that they use cgi scripts, I was wondering if anyone had got a PHP version of the scripts that they use?
Thanks
Chris Davis
I am not sure of a PHP version of this script, but it shouldn't be too difficult to create a similar script. Basically you would need a MySQL database backend to store the information and ample space to store the photos..
the tables would be setup similar to this:
vote table -- would contain the votes for each picture (would contain an association to the personal table, possibly the IP address of the voter (so they won't vote twice on a person), & their vote)
personal table -- would contain the information for each individual picture (age, picture, text, email address, etc..)
Afterwards, you could simply create a form that would allow new submissions (PHP has built in functionaility to make file uploads (for the pictures) extremely easy)and create a page that would allow people to vote on the individuals.
John Alamo
Just so you know, that exact script is available at www.hotscripts.com for free download. It is a PHP written script. It is one of the scripts at this URL. Sorry I didn't have the time to figure out which one exactly, but if you are motivated enough, you'll find it.
http://www.hotscripts.com/PHP/Scripts_and_Programs/Polls_and_Voting/
The reason I know it's in there is that I saw it in there months back, many of the graphics are the same, not much editting was done to that script compared to the live version. That was a few months ago. Now there's more things at that site, like asking for a visit etc.
Hope it helps!
-WC-