php-db | 2001072
Date: 07/23/01
- Next message: Mikusch, Rita: "RE: [PHP-DB] cancel <20010723135436.90722.qmail <email protected>>"
- Previous message: kmurrah: "[PHP-DB] line breaks in mySQL text fields"
- In reply to: Shahmat Dahlan: "[PHP-DB] Access counter"
- Next in thread: Shahmat Dahlan: "Re: [PHP-DB] Access counter"
- Reply: Shahmat Dahlan: "Re: [PHP-DB] Access counter"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
in pseudo-code:
make a text file - associate it a URL
when a user comes along, have a PHP script on top of the web page to
1. open the text file
2. counter = counter +1
3. write update
3.5 print number of hits somewhere on webpage
4. close file...
Shahmat Dahlan wrote:
>
> I'd like to do a counter with PHP, how do you do this? I thought maybe I
> could either use cookie or session or session? Which should I use ?
>
> regards and thanks is adnved
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe <email protected>
> For additional commands, e-mail: php-db-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
-- Leo G. Divinagracia III ldivinag <email protected>-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe <email protected> For additional commands, e-mail: php-db-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Mikusch, Rita: "RE: [PHP-DB] cancel <20010723135436.90722.qmail <email protected>>"
- Previous message: kmurrah: "[PHP-DB] line breaks in mySQL text fields"
- In reply to: Shahmat Dahlan: "[PHP-DB] Access counter"
- Next in thread: Shahmat Dahlan: "Re: [PHP-DB] Access counter"
- Reply: Shahmat Dahlan: "Re: [PHP-DB] Access counter"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

