|
-
Oct 13th, 2004, 02:17 AM
#1
Thread Starter
Addicted Member
polling Script Required
Hi Guys i m new in PHP can any body have Polling Script with out using database please sent me thanks
-
Oct 13th, 2004, 04:24 AM
#2
Frenzied Member
Google gave me answers straight away
http://www.ftls.org/en/examples/php/php_poll.php3
http://www.proxy2.de/scripts.php
Edit: ah crap, you said without databases. Well, you have to store the info somewhere. You could save it as txt files, but then it'll be slower. Do a search for saving/reading files. There's plenty of it. You'll also need to be able to parse it quite well.
Have I helped you? Please Rate my posts. 
-
Oct 13th, 2004, 05:10 AM
#3
Thread Starter
Addicted Member
Hi Agan is there no way of using object for polling in php like counter etc.... if there is i think it will be faster then text file or database. thanks
-
Oct 13th, 2004, 05:45 AM
#4
Retired VBF Adm1nistrator
Well how are you going to store or remember how many hits have been collected so far?
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Oct 14th, 2004, 12:44 AM
#5
Thread Starter
Addicted Member
i don't want to calculate the hits i want to count the polling in yes or no only so i think tat may be there is any thing which can be use. thanks
-
Oct 14th, 2004, 03:48 AM
#6
Frenzied Member
Hammad, you need to keep a count of the "yes"es and "no"s, so you need to store data. You can do this in a database or in files. Since you don't want to use databases that leaves files. Now all you have to do is simply search for how to read/write files in PHP.
Just store the data in this fashion:
[yes],[no]
eg,
123,89
That would make it extremely simple for you to parse when reading the file.
Have I helped you? Please Rate my posts. 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|