It's easy. only one thing you need to do is adding
ini_set("memory_limit","32M");
to the top of your code. Done! This is for people who does not have your own host; perhaps hosting at somewhere like godaddy.com, as mine. The normal way to do is you have to edit php.ini which belong to server root folder or where else, i'm really not sure to push up the max memory limit of their server.
By doing this you dont' need to do anythis else.
Goodluck.
Technorati : PHP, how to solve Exhaust Memory
Del.icio.us : PHP, how to solve Exhaust Memory
Zooomr : PHP, how to solve Exhaust Memory
Flickr : PHP, how to solve Exhaust Memory
Labels: กิจกรรมยามว่าง, เกล็ดความรู้, ไดอารี่, how to solve Exhaust Memory, PHP