Running PHP 5.3.6 under MAMP on MAC, the memory usage increases every x calls (between 3 and 8) until the script dies from memory exhaustion. How do I fix this?
Testing your script locally produces the same result. Changing file_get_contents() to a local HTML file however produces a consistent memory usage. It could be that the output from ebay.com is changing every X calls.