RE: [PHP] Memory Size Help Please

2003-11-19 Thread Jay Blanchard
[snip] Can anyone spot the problem here and point me in the right direction? [/snip] Nope, not enough info to spot the problem. I could point you in a direction, but that wouldn't help I am afraid. Wait, hold that thought, I have a direction to point you in. Please provide us with relevant

Re: [PHP] Memory Size Help Please

2003-11-19 Thread Raditha Dissanayake
hi How about using fopen() and reading line by line. And for xml parsing if you are using DOM switch to SAX that will always help. Nick Wilson wrote: Hi all, Can anyone spot the problem here and point me in the right direction? I have a script that goes and fetches the xml at weblogs.com

Re: [PHP] Memory Size Help Please

2003-11-19 Thread Nick Wilson
* and then Jay Blanchard declared Nope, not enough info to spot the problem. I could point you in a Spare me the sarcasm. Here's the code if anyone can help, thanks. ? $xml=file('http://www.weblogs.com/changes.xml'); $xml=implode(\n, $xml); // Pattern match string $urlpattern =

Re: [PHP] Memory Size Help Please

2003-11-19 Thread Raditha Dissanayake
Hi, Jay's comment was a fair one. It's not always possible to help without full info. You could try writing your data directly to disk instead of keeping them in memory as your code seems to be doing. In that case your regex function might need to go into the character data handler. Nick

Re: [PHP] Memory Size Help Please

2003-11-19 Thread Nick Wilson
* and then Raditha Dissanayake declared Hi, Jay's comment was a fair one. It's not always possible to help without full info. I beg to differ, the point was valid but the manner unfriendly at best. You could try writing your data directly to disk instead of keeping them in memory