maitaijim Posted October 13, 2008 Share Posted October 13, 2008 This is my first experience with retrieving XML with PHP and I have everything working as it should I just what to make sure I have all my bases covered. Many examples I have seen using simplexml_load_string or simplexml_load_file open a cURL session for retrieving the XML array, is this necessary? My script is working just fine without it and I don't have any need for return codes. Am I missing something by not opening a cURL session? Thanks, Jim Link to comment https://forums.phpfreaks.com/topic/128244-is-curl-necessary-for-retrieving-xml-with-simplexml_load_string/ Share on other sites More sharing options...
imzeeshan Posted October 19, 2008 Share Posted October 19, 2008 Of course not. Curl is not necessary for loading xml with simplexml . although some sites would not like to share their data without you paying them, so you can use CURL to fool them and load it with simplexml but this is not always the case. Link to comment https://forums.phpfreaks.com/topic/128244-is-curl-necessary-for-retrieving-xml-with-simplexml_load_string/#findComment-669341 Share on other sites More sharing options...
maitaijim Posted October 20, 2008 Author Share Posted October 20, 2008 Thanks, this is what I thought. Just wanted to avoid making a newbie mistake. Jim Link to comment https://forums.phpfreaks.com/topic/128244-is-curl-necessary-for-retrieving-xml-with-simplexml_load_string/#findComment-670215 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.