Jump to content

Is cURL necessary for retrieving XML with simplexml_load_string?


maitaijim

Recommended Posts

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

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.

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.