script uses all available memory

Not for 'how-to' coding questions but PHP theory instead, this forum is here for those of us who wish to learn about design aspects of programming with PHP.

Moderator: General Moderators

Post Reply
User avatar
bluesman333
Forum Commoner
Posts: 52
Joined: Wed Dec 31, 2003 9:47 am

script uses all available memory

Post by bluesman333 »

I have a script that processes data from an XML Feed and inserts it into my database. It works fine on my local testserver, but when I try to execute it on my VPS Server, the script crashes because I'm using up all of my available memory.

Can I write the script to consume less memory, or to free up memory while the script is executing?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Re: script uses all available memory

Post by feyd »

bluesman333 wrote:Can I write the script to consume less memory, or to free up memory while the script is executing?
More than likely.
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

How large is the XML feed?
Post Reply