Re: voting using text files
| From: | Justin French | Date: | Wed, 22 May 2002 15:16:23 +0000 |
| Subject: | Re: voting using text files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-98745@lists.php.net to get a copy of this message | ||
Just have a look around for a counter script which uses file locking, then
port it to suit your needs, or check out the flock() example that *i think*
there is in the manual.
phpbuilder.com or zend.com or the rest are bound to have a script.
Justin French
on 22/05/02 11:38 PM, Nick Wilson (nick@explodingnet.com) wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> hi all
> I have to build a php 'survey' app. but cannot use a db,
> clearly text files are the way but I wondered, before I start if any of
> you have done similar and might offer any words of wisdom?
>
> Are there any inherent problems I need be aware of for example (I can
> already think of one: what if 2 people try to vote at the same time?)
>
> Just some general thoughts would be greatly appreciated ;)
> - --
> Nick Wilson // www.explodingnet.com
>
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.6 (GNU/Linux)
>
> iD8DBQE8659rHpvrrTa6L5oRAu8PAJ48Xf71iv98nN9nTac+tyHX5PJ+VgCgrTuI
> dk/+Hf8S+L9NdBo02oDt25U=
> =ESei
> -----END PGP SIGNATURE-----