I'm using simpleXML and PHP to get a feed, then processing it in a foreach loop as normal.
I would like to recognise if the feed is huge and stop the processing of the feed, or if possible, stop the downloading of the feed completely, or cut it once it is over a set limit.
Are there any methods to do this?