Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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
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.... –  Billy ONeal May 15 '11 at 7:42
add comment

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

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

1 Answer

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
add comment

Your Answer

 
discard

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.