RE: [PHP] advise on simplfying session usage

2012-01-12 Thread mail.pmpa
When I have many calls to $_SESSION I do: $s = $_SESSION; $s['foo'] = 'bar'; echo $s['foo']; //bar -Original Message- From: Haluk Karamete [mailto:halukkaram...@gmail.com] Sent: sexta-feira, 13 de Janeiro de 2012 01:17 To: php-general@lists.php.net Subject: [PHP] advise on simplfying

[PHP] RE: help avoid multiple login

2005-11-30 Thread mail.pmpa
-Mensagem original- De: Jochem Maas [mailto:[EMAIL PROTECTED] the normal way of doing session 'closing' is by way of 'garbage collection' - every now and then a script/process/function is run that 'closes' any sessions which are (according to your criteria) inactive. php has stuff

[PHP] help avoid multiple login

2005-11-29 Thread mail.pmpa
-Mensagem original- De: Jochem Maas (...) the normal way of doing session 'closing' is by way of 'garbage collection' - every now and then a script/process/function is run that 'closes' any sessions which are (according to your criteria) inactive. php has stuff built it that will do this

[PHP] help avoid multiple login

2005-11-29 Thread mail.pmpa
-Mensagem original- De: Jochem Maas (...) the normal way of doing session 'closing' is by way of 'garbage collection' - every now and then a script/process/function is run that 'closes' any sessions which are (according to your criteria) inactive. php has stuff built it that will do this

[PHP] help avoid multiple login

2005-11-28 Thread mail.pmpa
Greetings I'm having some trouble on a members online script. I use a php script to track member login to avoid multiple logins on different ips etc. When a logged member closes the browser window I can't delete the table entry because I will not have access to some sort of Session_OnEnd action

RE: [PHP] help avoid multiple login

2005-11-28 Thread mail.pmpa
operations. mail.pmpa [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Greetings I'm having some trouble on a members online script. I use a php script to track member login to avoid multiple logins on different ips etc. When a logged member closes the browser window I can't delete

RE: [PHP] help avoid multiple login

2005-11-28 Thread mail.pmpa
De: Matt Monaco [mailto:[EMAIL PROTECTED] Create an object with the functionality of your choosing, in the destructor perform your cleanup operations. The problem is I don't know when a member closes the browser window. If I knew that i would automatically logout that member. Thanks. -- PHP

RE: [PHP] How to argue with ASP people...

2004-12-31 Thread mail.pmpa
I used response.redirect in asp to avoid form re-submit, so I can have form handling functions and other related functions on the same file. new_customer_form.php : form action=form_results.php Customer fills form and hits submit button. form_results.php : function validate_form_data(){

RE: [PHP] How to argue with ASP people...

2004-12-31 Thread mail.pmpa
-Mensagem original- De: John Holmes This is a workaround, really. Your code should be structured so that you can decide if you need to perform a redirect before any output is sent to the browser. If you're going to send them to another page, why would you have any output anyhow? Using

RE: [PHP] How to argue with ASP people...

2004-12-30 Thread mail.pmpa
Don't mean to start a discussion whatsoever, I love php, but one thing i can't do in php is Response.Redirect . Apart from that no complains so far :) * Happy New Year * Pedro Almeida. -Mensagem original- De: Tony Di Croce [mailto:[EMAIL PROTECTED] I am fairly new to PHP, but I am

RE: [PHP] How to argue with ASP people...

2004-12-30 Thread mail.pmpa
Can I do any session handling before calling header(Location: $url); ? Pedro Almeida. -Mensagem original- De: Rasmus Lerdorf [mailto:[EMAIL PROTECTED] mail.pmpa wrote: Don't mean to start a discussion whatsoever, I love php, but one thing i can't do in php is Response.Redirect

[PHP] help in reversing an array

2004-12-25 Thread mail.pmpa
Hi all and Merry Christmas!! I am having some trouble reversing the order of an array. I have this array: $array[0]='Socket A'; $array[1]='Single processor'; $array[2]='Motherboards'; $array[3]='Hardware'; and I want to do a simple reverse of the content like this: