Re: [PHP] function array problem

2009-02-17 Thread Eric Butera
On Tue, Feb 17, 2009 at 3:10 PM, Ashley Sheridan wrote: > I've had a bit of a problem with a function I'm using for a form. > Essentially, the function looks like this: > > function addEvent($values = Array('name' => '', 'venue' => '', > 'description' => '', 'errors' => Array())) > { >// code

Re: [PHP] PLEASE help, this is driving me crazy - is saveHTML() etc not UTF-8 capable?

2009-02-17 Thread mike
On Tue, Feb 17, 2009 at 4:26 PM, mike wrote: > i tried that kind of stuff - it did not seem to work. > > i will try again... if anyone has any ideas i.e. "use iconv to convert > to A, then use DOM stuff, then use iconv to move it back to UTF8..." > etc. i am all ears. Nope - for example this is t

[PHP] Unique User Hashes

2009-02-17 Thread Ian
Hi, I am busy building an application that requires one time voting and to get around the user deleting a cookie that I set im keeping a hash on my side which I then try match before allowing anything. This is how I currently generate my hash: /* Get vars */ $browser = $_SERVER['HT

Re: [PHP] Unique User Hashes

2009-02-17 Thread Chris
Ian wrote: Hi, I am busy building an application that requires one time voting and to get around the user deleting a cookie that I set im keeping a hash on my side which I then try match before allowing anything. I assume this is backed by a db of some sort. $query = "update user set has_vote

Re: [PHP] Unique User Hashes

2009-02-17 Thread Ian
Hi, Yep it is backed by DB and i do record when they vote - but its still flawed in how to track unique users :) Thanks though - will continue to look further. Cheers On Wed, Feb 18, 2009 at 5:56 AM, Chris wrote: > Ian wrote: > >> Hi, >> I am busy building an application that requires one time

Re: [PHP] Unique User Hashes

2009-02-17 Thread Chris
Ian wrote: Hi, Yep it is backed by DB and i do record when they vote - but its still flawed in how to track unique users :) Thanks though - will continue to look further. Do you have to log in to vote? How are you stopping people from signing up multiple times? -- Postgresql & php tutorial

Re: [PHP] Unique User Hashes

2009-02-17 Thread Ian
We dont have registration - its a once off vote anonymously using the hash in the original email. We dont want registration otherwise it would be much easier - but this was the best way I could think of without user registration :/ On Wed, Feb 18, 2009 at 9:05 AM, Chris wrote: > Ian wrote: > >>

[PHP] Re: Unique User Hashes

2009-02-17 Thread Martin ZvarĂ­k
I don't think there is more precise way to determine the visitor than by the IP address, and it sucks indeed. You can't rely on the cookies, can't rely on what's in 'HTTP_USER_AGENT' ... as said: registration could be a solution - but it's an annoyance for the visitors - although you can try O

<    1   2