Hi, I've been trying to parse XML files using simpleXML. I've been using the following code: $xml_data = simplexml_load_file('feed.xml'); echo $xml_data->product[0]->Advertiser; This is working perfectly for small XML files. However whenever I try to parse a larger XML file which is 15.6Mb the following error message is returned: Having done some background reading I believe the error could be due to a value in the php.ini file. I have since made a new php.ini file and set the following variables: max_execution_time = 10000 max_input_time = 60000 memory_limit = 18M post_max_size = 18M upload_max_filesize = 18M This hasn't solved the problem, and I'm now completely stumped! Can anyone help?? Thanks
Have you checked to see if the XML file is valid? I would also set the limit way above the size that you are actually processing, something like 50 may be better.