I am trying to get content from a wordpress installation on a subdomain of my server. I tried that with file_get_content and also with Zend_Http_Client.
$client = new Zend_Http_Client(Zend_Registry::get('CONFIG')->static->$name->$lang);
$content = $client->request()->getBody();
As long as I run in on my localhost, it works fine. As soon as it runs on the same server as the subdomain, it hangs forever (timeout).
Specs:
- Zend Framework Application trying to get HTML from a Wordpress Page
- Server running on lighttpd
- Several cores, much ram
Do you guys have an idea on how this problem can be resolved? Cheerio