الترجمة الى العربية
2010/5/4 Muhammad Saifullah <[email protected]>:
> 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 at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
لقد لاحظت بعض المشاكل أدناه.
انا بحاجة لتحميل البيانات إلى الذاكرة ومجموعة في PHP.but في بي لو كنت
أكتب $ مجموعة صفيف = ("1" ، "2") ؛ في test.php ثم هذا المتغير الصفيف $
تتم تهيئة كل requests.if المستخدم الوقت ونحن طلب test.php 100 مرة عن
طريق النقر 100 مرة زر تحديث المتصفح ثم سيتم تنفيذ هذا المتغير مجموعة
100 دولار مرة.
ولكن انا بحاجة الى تنفيذ مجموعة متغير $ مرة واحدة فقط لطلب أول مرة ،
وطلب لاحق من test.php يجب أن يتم تنفيذ مجموعة variable.but دولارا فقط
استخدام هذه الذاكرة location.how أستطيع أن أفعل ذلك في بي.
ولكن في SEVRVLET جافا فمن السهل لتنفيذ والكتابة فقط متغير الصفيف دولار
في وقت واحد من تنفيذ الحرف الأول () طريقة طريقة دورة حياة بريمج وطلب
لاحق من ذلك لا بريمج تنفيذ الحرف الأول () ولكن طريقة خدمة الأسلوب ()
ولكن (الخدمية) الأسلوب يستخدم دائما أن مجموعة $ موقع memeory.
كل ما أريد initilize $ صفيف متغير مرة واحدة ولكن استخدام هذا الموضع
الذاكرة من طلب لاحق في PHP.is هناك أي امكانية في بي؟
--
--
www.abuawad.com
--
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.