Originally posted by bradgrafelman
Instead of your while() statement using fread(), have you tried using [man]file_get_contents/man ?
I just have, it doesnt work :queasy:
I can echo the $data variable before it goes into xml_parse, and the entire page is echo'd correctly.
There is still bits of the articles missing however.
I am very confused!
[EDIT]
I'm getting closer.
Is there a limit on the length of arrays? i.e. $temp['article'] = $data;
[EDIT #2]
I think I have it now :-)
If I echo the data in the characterData function, then add it to the array, then echo the array, the two end up different 😉
Is there any way to make sure the array will hold all of the data???
[EDIT #3]
Was wrong previously. The data is passed to the characterData function in chunks, so after the first chunk of the article, it doesnt know what to do with the rest.
I should be able to work something out now that I have found this 🙂