|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
|||
|
|||
|
Memory Management
How does PHP manage memory? Would memory be freed up if i declared variables void? How can I make sure that I am using the minimum amount of memory possible?
|
|
#2
|
||||
|
||||
|
RE: Memory Management
IIRC (so don't take this as gospel) PHP is self managing for memory with a garbage collector. As long as the resources are manually released (unset(), close, ect.) the memory should go back to the box. Worst case scenerio - the memory is freed when the script is completed.
To clear varables use unset()- and generally speaking - it is better to have readable, reusable code then code optimized for minimal memory. |
|
#3
|
|||
|
|||
|
RE: Memory Management
Thanks for the help, Lig
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Installation > Memory Management |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|