Mzor Posted October 6, 2009 Share Posted October 6, 2009 I'm not 100% sure what the 'id=1' part in a URL such as 'index.php?id=1' is called, but nonetheless, I'm having some problems. What I need to do is to load up some XML. The file path might be something like, '.xml?id=1', but when I try to load up the file either using fopen() or simplexml_load_file(), it loads the file as if it were simply the path without everything after the question mark. I need a way around this, so that I can load data from a file dynamically. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/176657-solved-problems-loading-files-with-get-data-in-path/ Share on other sites More sharing options...
Daniel0 Posted October 6, 2009 Share Posted October 6, 2009 Could you show us the code? Quote Link to comment https://forums.phpfreaks.com/topic/176657-solved-problems-loading-files-with-get-data-in-path/#findComment-931331 Share on other sites More sharing options...
Mzor Posted October 6, 2009 Author Share Posted October 6, 2009 Never mind, I figured out the problem wasn't that the values after the question mark. The problem was simply that the server was giving me a version of the XML which had a stylesheet applied to it, messing it up. So I changed the user_agent to latest version of Firefox which (somehow) gets the raw XML. Sorry to be of bother. Quote Link to comment https://forums.phpfreaks.com/topic/176657-solved-problems-loading-files-with-get-data-in-path/#findComment-931340 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.