FaithRaven Posted April 7, 2007 Share Posted April 7, 2007 Let's take this link for example: http://armory.wow-europe.com/#arena...indication&ts=5 If I open it in a browser, right click and click View Source I see a nice looking and well formated XML. But If I fopen this link from PHP and paste it's content I get a very messy generated page. I wonder, is it possible in PHP to get the page content in XML and not the generated source ? Link to comment https://forums.phpfreaks.com/topic/46012-how-to-fetch-a-page-source/ Share on other sites More sharing options...
Demonic Posted April 7, 2007 Share Posted April 7, 2007 file_get_contents? Or you could use fsockopen(); What ever fits you. Can you provide the script that you have also? Link to comment https://forums.phpfreaks.com/topic/46012-how-to-fetch-a-page-source/#findComment-223576 Share on other sites More sharing options...
FaithRaven Posted April 7, 2007 Author Share Posted April 7, 2007 I don't really have a code already because this is the first step in coding what I need. Could you provide me an example ? Just to get the XML content from a link like http://armory.wow-europe.com/arena-ladder.xml?b=Vindication&ts=5 into a php variable. Link to comment https://forums.phpfreaks.com/topic/46012-how-to-fetch-a-page-source/#findComment-223583 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.