Re: PHP servlet in memory database

2010-05-12 Thread Mark Marijnissen
start_session(); //to be called once, to load the $_SESSION variables. $array = IsSet($_SESSION['array'])? $_SESSION['array']: createArray(); //load array from session if there is any, otherwise create a new array function createArray() { return array('1','2'); } On May 10, 11:50 am, خليل بول

Re: PHP servlet in memory database

2010-05-10 Thread خليل بولو
الترجمة الى العربية 2010/5/4 Muhammad Saifullah : > i have some problem noticed below. > > i need to load data as array to memory in PHP.but in PHP if i write $array= > array("1","2"); in test.php then this $array variable is initialized every > time user requests.if we request test.php 100 times

Re: PHP servlet in memory database

2010-05-10 Thread ben fenster
the only way i could think of is php is session variables On 4 מאי, 13:38, Muhammad Saifullah wrote: > i have some problem noticed below. > > i need to load data as array to memory in PHP.but in PHP if i write *$array= > array("1","2");* in test.php then this $array variable is initialized every

PHP servlet in memory database

2010-05-04 Thread Muhammad Saifullah
i have some problem noticed below. i need to load data as array to memory in PHP.but in PHP if i write *$array= array("1","2");* in test.php then this $array variable is initialized every time user requests.if we request test.php 100 times by clicking 100 times browser refresh button then this $ar