Re: [PHP] advise on simplfying session usage

2012-01-13 Thread David Courtin
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@

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 S

Re: [PHP] advise on simplfying session usage

2012-01-12 Thread tamouse mailing lists
On Thu, Jan 12, 2012 at 8:52 PM, tamouse mailing lists wrote: > On Thu, Jan 12, 2012 at 8:45 PM, Haluk Karamete > wrote: >> I agree... that was just a wild idea! :) >> Let's forget about it! >> >> What's a good PHP programming editor you'd recommend on a mac for starters? > > (Remember to bottom

Re: [PHP] advise on simplfying session usage

2012-01-12 Thread tamouse mailing lists
On Thu, Jan 12, 2012 at 8:45 PM, Haluk Karamete wrote: > I agree... that was just a wild idea! :) > Let's forget about it! > > What's a good PHP programming editor you'd recommend on a mac for starters? (Remember to bottom post.) My favourite on the Mac is TextMate, but it's not $free. (It's als

Re: [PHP] advise on simplfying session usage

2012-01-12 Thread Haluk Karamete
I agree... that was just a wild idea! :) Let's forget about it! What's a good PHP programming editor you'd recommend on a mac for starters? On Thu, Jan 12, 2012 at 6:39 PM, tamouse mailing lists wrote: > On Thu, Jan 12, 2012 at 7:16 PM, Haluk Karamete > wrote: >> Again, coming from ASP back

Re: [PHP] advise on simplfying session usage

2012-01-12 Thread tamouse mailing lists
On Thu, Jan 12, 2012 at 7:16 PM, Haluk Karamete wrote: > Again, coming from ASP background, I'm trying to minimize the typing > for most needed functionalities.. > > in asp, to set a session var, you go <%session("age")=90%> and to > output it, you just go <%=session("age")%> > > in php, you've go

[PHP] advise on simplfying session usage

2012-01-12 Thread Haluk Karamete
Again, coming from ASP background, I'm trying to minimize the typing for most needed functionalities.. in asp, to set a session var, you go <%session("age")=90%> and to output it, you just go <%=session("age")%> in php, you've got to _SESSION['age']=90. that's a lot of keyboarding, lots of double