note 80519 added to function.xml-parser-create
| From: | jonathancnewcomb at msn dot com | Date: | Sun, 20 Jan 2008 06:25:17 +0000 |
| Subject: | note 80519 added to function.xml-parser-create | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-135249@lists.php.net to get a copy of this message | ||
The above script doesnt parse very well for large (over 1000 tags) xml files because the foreach()
uses a lot of memory. To solve the problem, replace foreach() with a for(), since for loops do not
use near as much memory as the foreach. All in all though, very handy script
----
Server IP: 69.147.83.197
Probable Submitter: 70.247.108.34
----
Manual Page -- http://www.php.net/manual/en/function.xml-parser-create.php
Edit -- https://master.php.net/note/edit/80519
Del: integrated -- https://master.php.net/note/delete/80519/integrated
Del: useless -- https://master.php.net/note/delete/80519/useless
Del: bad code -- https://master.php.net/note/delete/80519/bad+code
Del: spam -- https://master.php.net/note/delete/80519/spam
Del: non-english -- https://master.php.net/note/delete/80519/non-english
Del: in docs -- https://master.php.net/note/delete/80519/in+docs
Del: other reasons-- https://master.php.net/note/delete/80519
Reject -- https://master.php.net/note/reject/80519
Search -- https://master.php.net/manage/user-notes.php