Animesh K wrote:
Hello All:
I am new to Php, but working my way out slowly. I saw some polling or
voting scripts on the net and all of them use MySQL database with it. I
was wondering if a file can be used (to save use of a database, I have
only 10-databases from godaddy and I cannot use one for each poll).
It seems that this can be done (using file instead of a DB), but I
don't
want to re-invent the wheel. So if someone has a suggestion, please
help
me out.
Best regards,
Animesh
10 databases is not really a problem here. You can identify tables that
belong to a single script inside a single database using a unique name
prefix. This is how it has been done years ago when a single MySQL
database that your host allowed was look upon as a huge favor.
In any case, if you are trying to avoid using a database, you will need
your script to be able to write onto the hard drive and that creates
possibility for NASTY website hacks. I would avoid a script that
unnecessarily writes anything to a disk. Don't shy away from database use.
There are plenty of benefits there.
As for where to get a ready-to-go script,
www.hotscripts.com has plenty.
--
Cheers,
Dmitri
See Site Sig Below
--
+------------------------------------------------+
| Follow comp.lang.php threads |
| with your Firefox Live Bookmarks! Set it up at |
|
http://www.1-script.com/forums/ |
+------------------------------------------------+