the only way i could think of is php is session variables

On 4 מאי, 13:38, Muhammad Saifullah <[email protected]> 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
> time user requests.if we request test.php 100 times by clicking 100 times
> browser refresh button then this $array variable will be executed 100 times.
>
> but i need to execute the $array variable only one time for first time
> request and subsequent request of test.php must not execute the $array
> variable.but only use that memory location.how can i do that in PHP.
>
> but in JAVA SEVRVLET it is easy to execute,just write the $array variable in
> one time execution of init() method of servlet lifecycle method and
> subsequent request of that servlet dont execute init() method but service()
> method but service() method always uses that $array memeory location.
>
> *all i want to initilize $array variable once but use that memory loc from
> subsequent request in PHP.is there any possiblity in PHP?*
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to