Why does my server hang when I call a page over files_get_content?
Posted
by Marc
on Stack Overflow
See other posts from Stack Overflow
or by Marc
Published on 2010-04-07T07:08:01Z
Indexed on
2010/04/07
7:13 UTC
Read the original article
Hit count: 396
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
© Stack Overflow or respective owner