You are here: Re: Noob query: Voting or Poll Scripts « PHP Programming Language « IT news, forums, messages
Re: Noob query: Voting or Poll Scripts

Posted by www.1-script.com on 02/14/07 02:15

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/ |
+------------------------------------------------+

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация