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
Post a Comment