All New Phawville |
| How to Fix Simple HTML Dom Memory Exhaustion Problem Posted: 18 Feb 2011 05:45 AM PST How to Fix Simple HTML Dom Memory Exhaustion Problem. Have you encountered an error such as this when trying to use the Simple HTML Dom script?
If yes, then you’ve got yourself a memory exhaustion problem! The Simple HTML Dom script is a very cool script to parse HTML documents but in terms of memory management it is not that cool. Fortunately, there is a simple solution to this problem. Simply allocate more memory dynamically! Add this line of code at the top of your PHP script:
The “200M” is variable so change it to whatever suits your needs. I believe by default, PHP allocates 64M as the memory limit. Check out the ff links for more information on this:
|
| You are subscribed to email updates from All New Phawville To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
| Google Inc., 20 West Kinzie, Chicago IL USA 60610 | |

Niciun comentariu:
Trimiteți un comentariu