PHP SimpleXML size limit
<p>I'm using simpleXML and PHP to get a feed, then processing it in a foreach loop as normal.</p>

<p>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.</p>

<p>Are there any methods to do this?</p>
