php-general Digest 1 Jan 2012 16:26:54 -0000 Issue 7631

2012-01-01 Thread php-general-digest-help
php-general Digest 1 Jan 2012 16:26:54 - Issue 7631 Topics (messages 316140 through 316143): Re: array 316140 by: Ashley Sheridan 316141 by: Govinda Re: Error in portuguese translation of substr_compare 316142 by: Daniel P. Brown count clicks to count most

[PHP] count clicks to count most important news

2012-01-01 Thread muad shibani
I have a website that posts the most important news according to the number of clicks to that news the question is : what is the best way to prevent multiple clicks from the same visitor?

Re: [PHP] count clicks to count most important news

2012-01-01 Thread Tedd Sperling
On Jan 1, 2012, at 11:26 AM, muad shibani wrote: I have a website that posts the most important news according to the number of clicks to that news the question is : what is the best way to prevent multiple clicks from the same visitor? Not a fool-proof method, but use Javascript on the

Re: [PHP] count clicks to count most important news

2012-01-01 Thread Ashley Sheridan
On Sun, 2012-01-01 at 11:49 -0500, Tedd Sperling wrote: On Jan 1, 2012, at 11:26 AM, muad shibani wrote: I have a website that posts the most important news according to the number of clicks to that news the question is : what is the best way to prevent multiple clicks from the same

Re: [PHP] count clicks to count most important news

2012-01-01 Thread Maciek Sokolewicz
On 01-01-2012 20:08, Ashley Sheridan wrote: On Sun, 2012-01-01 at 11:49 -0500, Tedd Sperling wrote: On Jan 1, 2012, at 11:26 AM, muad shibani wrote: I have a website that posts the most important news according to the number of clicks to that news the question is : what is the best way to

Re: [PHP] count clicks to count most important news

2012-01-01 Thread Stuart Dallas
On 1 Jan 2012, at 16:26, muad shibani wrote: I have a website that posts the most important news according to the number of clicks to that news the question is : what is the best way to prevent multiple clicks from the same visitor? I'm assuming this is not a voting system, and the news

Re: [PHP] count clicks to count most important news

2012-01-01 Thread muad shibani
All the answers are great but Stuart Dallas' answer is what I was asking about .. thank u all I really appreciate it a lot On Sun, Jan 1, 2012 at 11:10 PM, Stuart Dallas stu...@3ft9.com wrote: On 1 Jan 2012, at 16:26, muad shibani wrote: I have a website that posts the most important news

[PHP] PHP 5.3.2 max_execution_time

2012-01-01 Thread Chris Tapp
I've got a Dokuwiki installation that is producing Apache errors saying that the maximum execution time of 30 seconds has been exceeded. So, I went and changed max_execution_time in php.ini expecting that this would solve the problem (which is due to large files taking a while to upload

Re: [PHP] Question about date calculations

2012-01-01 Thread Matijn Woudt
On Fri, Dec 30, 2011 at 5:33 PM, Eric Lommatsch er...@pivotaldata.net wrote: When I try this method: $interval = $dteStartDate[$intCnt]-diff($dteEndDate[$intCnt]); I get the following error when I run the page: Fatal error : Call to undefined method DateTime::diff() in

Re: [PHP] PHP 5.3.2 max_execution_time

2012-01-01 Thread Duken Marga
If you want to upload large file, maybe you should consider maximum uploaded size. You can change setting in php.ini on line that contain * upload_max_filesize*. On Mon, Jan 2, 2012 at 5:13 AM, Chris Tapp opensou...@keylevel.com wrote: I've got a Dokuwiki installation that is producing Apache