I have an XML file I can get via a URL. I know I can get the file using fopen, but sometimes I’ve seen scripts use curl. Is there an advantage to using curl over fopen to get XML files?
I have an XML file I can get via a URL. I know I
Share
Well, if you are going to use SimpleXML to load the file you can use
However, some servers will restrict loading urls from this function. In this case you would be restricted to cURL.