Noob query: Voting or Poll Scripts

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Animesh K

    Noob query: Voting or Poll Scripts

    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
  • Geoff Berrow

    #2
    Re: Noob query: Voting or Poll Scripts

    Message-ID: <eqtjbc$d85$1@a gate.berkeley.e dufrom Animesh K contained
    the following:
    >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).
    I wrote a poll which enabled you to have as many polls as you like using
    just two tables. I suspect others will be similar. Also you can have
    many tables in a database (I usually just use a naming convention to
    keep them separate.)

    --
    Geoff Berrow (put thecat out to email)
    It's only Usenet, no one dies.
    My opinions, not the committee's, mine.
    Simple RFDs http://www.ckdog.co.uk/rfdmaker/

    Comment

    • www.1-script.com

      #3
      Re: Noob query: Voting or Poll Scripts


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

      Comment

      • Animesh K

        #4
        Re: Noob query: Voting or Poll Scripts

        www.1-script.com wrote:
        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.
        >
        Thanks for the quick reply. I will adhere to your and Geoff's suggestions.

        Best regards,
        Animesh

        Comment

        Working...