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?

  • 2
    Switch to a decent host.
    – Alix Axel
    May 15 '11 at 7:39
  • 2
    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.... 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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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