php - simplexml-load-file -- remote or local loading? -


simple question apache+php: if use simplexml-load-file make http request or load file filesystem in case have:

  • option a: simplexml_load_file('test.xml');
  • option b: simplexml_load_file('http://my.website.com/test.xml');

moreover in second option, php perform dns resolution of my.website.com or there bypass mechanism?

thanks lot!

option load straight disk, option b perform http request, including dns lookup. there no bypass dns lookup, other modifying hosts file or putting in ip directly.


Comments

Popular posts from this blog

My HTML document is not linking to my CSS stylesheet properly -

php array slice every 2th rule -

node.js - Sending sockets to client side, Error: Converting circular structure to JSON -