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

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -