Re: [PHP] Very Odd Session Array Problem

2004-12-20 Thread Jason Barnett
Aaron Axelsen wrote: I understand the recursion part, but i dont understand why this fixes it: $quoteString = implode(",",$_SESSION['quotes'][$key]); $_SESSION['quotes'][$key] = explode(",",$quoteString); That is essentially just reading the values out, and sticking them back in. As already stated,

Re: [PHP] Very Odd Session Array Problem

2004-12-20 Thread Aaron Axelsen
I understand the recursion part, but i dont understand why this fixes it: $quoteString = implode(",",$_SESSION['quotes'][$key]); $_SESSION['quotes'][$key] = explode(",",$quoteString); That is essentially just reading the values out, and sticking them back in. Jason Barnett wrote: > If i dont do th

Re: [PHP] Very Odd Session Array Problem

2004-12-20 Thread Jason Barnett
> If i dont do that, when i do a print_r($_SESSION['quotes'][$key]) i get errors that say RECURSION and its almost like the arrays are making new If you have a SESSION['quotes'] array... and one of the elements in the array references the same SESSION['quotes'] array... then you are going to ha

Re: [PHP] Very Odd Session Array Problem

2004-12-20 Thread Aaron Axelsen
Let me see if i can explain this. Basically, if i dont have this chunk of code: $quoteString = implode(",",$_SESSION['quotes'][$key]); $_SESSION['quotes'][$key] = explode(",",$quoteString); If i dont do that, when i do a print_r($_SESSION['quotes'][$key]) i get errors that say RECURSION and its al

Re: [PHP] Very Odd Session Array Problem

2004-12-20 Thread Richard Lynch
Aaron Axelsen wrote: > We have the chunk of code at the bottom of the page. It is behaving > very strangly under php 4.3.9. Basically, if it is not coded exactly as > listed below, it will not work right. The development server is running > 5.0.3, and it works fine. However, the live server has

[PHP] Very Odd Session Array Problem

2004-12-18 Thread Aaron Axelsen
We have the chunk of code at the bottom of the page. It is behaving very strangly under php 4.3.9. Basically, if it is not coded exactly as listed below, it will not work right. The development server is running 5.0.3, and it works fine. However, the live server has 4.3.9. Is there somethi