Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using Dreamhost. In one of my scripts I need to gather contents of url (using file_get_contents). There are 9 sites, 8 of them are ok but one is very slow. It tooks 10~30sec. to connect.

As you would know scripts running more than ~5 seconds are killed by Dreamhost happy killer. So I cant gather this site.

Any suggestions?

share|improve this question

migrated from stackoverflow.com May 16 '11 at 18:39

This question came from our site for professional and enthusiast programmers.

Switch to a decent host. – Alix Axel May 15 '11 at 7:39
scripts running more than ~5 secs. are killed by dreamhost happy killer <-- Really? That's news to me, and I've been using DH with scripts which run longer than that for years.... – Billy ONeal May 15 '11 at 7:42

Sorry about mass, The error was in regexp, My laptop could handle but dreamhost caused problem. I changed it to basic str_replace and now it survives.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.