sloth456 Posted November 29, 2010 Share Posted November 29, 2010 Hi guys, This has been bothering me for quite some time. I have a piece of code that works absolutely fine on my local XAMPP setup but causes a 500 internal server error when I run it on my host (hostgator). $source = "marketplace_feed_v1.xml"; $xml = simplexml_load_file($source,'SimpleXMLElement', LIBXML_NOCDATA); SimpleXML is enabled on hostgator marketplace_feed_v1.xml is located in the same directory as this script I don't understand why this won't work Any help at all is much appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/220119-simplexml_load_file-500-internal-server-error/ Share on other sites More sharing options...
trq Posted November 29, 2010 Share Posted November 29, 2010 Disable 'simple error messages' in your browser then tell us what error your actually getting. Quote Link to comment https://forums.phpfreaks.com/topic/220119-simplexml_load_file-500-internal-server-error/#findComment-1140839 Share on other sites More sharing options...
sloth456 Posted November 29, 2010 Author Share Posted November 29, 2010 I'm using firefox, how would I go about that? Quote Link to comment https://forums.phpfreaks.com/topic/220119-simplexml_load_file-500-internal-server-error/#findComment-1140841 Share on other sites More sharing options...
trq Posted November 29, 2010 Share Posted November 29, 2010 Open a new tab and go to about:config, search for error, make sure 'browser.xul.error_pages.enabled' is set to true. Quote Link to comment https://forums.phpfreaks.com/topic/220119-simplexml_load_file-500-internal-server-error/#findComment-1140842 Share on other sites More sharing options...
sloth456 Posted November 29, 2010 Author Share Posted November 29, 2010 Thanks, but that value was already set to true. Quote Link to comment https://forums.phpfreaks.com/topic/220119-simplexml_load_file-500-internal-server-error/#findComment-1140843 Share on other sites More sharing options...
sloth456 Posted November 29, 2010 Author Share Posted November 29, 2010 Any other help would be appreciated Quote Link to comment https://forums.phpfreaks.com/topic/220119-simplexml_load_file-500-internal-server-error/#findComment-1140852 Share on other sites More sharing options...
sloth456 Posted November 29, 2010 Author Share Posted November 29, 2010 When I look in my error log this comes up: [29-Nov-2010 08:18:07] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-zts-20060613/ixed.5.2ts.lin' - /usr/local/lib/php/extensions/no-debug-zts-20060613/ixed.5.2ts.lin: undefined symbol: executor_globals_id in Unknown on line 0 Quote Link to comment https://forums.phpfreaks.com/topic/220119-simplexml_load_file-500-internal-server-error/#findComment-1140884 Share on other sites More sharing options...
sloth456 Posted November 29, 2010 Author Share Posted November 29, 2010 Seems the trouble is my xml file is very big. When I use a smaller test xml file it works. So my question is now, how can I parse a large xml file? Quote Link to comment https://forums.phpfreaks.com/topic/220119-simplexml_load_file-500-internal-server-error/#findComment-1140918 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.