I’ve written a small php script which uses the DOMDocument object to read xml from an external domain. The script works perfectly when hosted locally but doesn’t work when hosted on the phpfog cloud.
$mlDoc = new DOMDocument();
$xmlDoc->load($url);
I’ve checked the url which is produced prior to the load call and it’s fine. As far as I’m aware the method shouldn’t be affected by where it is called from (local machine or external).
Any thoughts?
Thanks.
It’s possible the PHPFog cloud has disabled the DOM extension (either explicitly with
--disable-domor implicitly because they passed--disable-libxml). If neither of these things are true, can the PHPFog machine access$url? You might tryfile($url)if the fopen wrappers are enabled, to see if the machine can access the URL (or try opening a socket to port 80 after resolving the domain).