faceless105
n00b
- Joined
- Jun 26, 2006
- Messages
- 37
i'm looking for a way to set a function to time out, meening that if it isn't able to complete itself within a given period of time, then it aborts the function.
the reason i need something like this is, i programmed a forum and i have it check the image sizes while i process the bbc, which works nice to scale down images that people aren't nice enough to scale down a little. well i've noticed that when people have their images hosted on slower server then it takes a while to check the image size which makes the post take a while to load, so while my page looks like it's wanting to time out, it's just taking a while on someone's slow images.
so i want to know if theres a way that i can call a function and if it doesn't complete in a certain amount of time then i can abort it? - thus just leaving the image at whatever its default size is
btw, this is being done in php, prolly shouldda mentioned that earlier
the reason i need something like this is, i programmed a forum and i have it check the image sizes while i process the bbc, which works nice to scale down images that people aren't nice enough to scale down a little. well i've noticed that when people have their images hosted on slower server then it takes a while to check the image size which makes the post take a while to load, so while my page looks like it's wanting to time out, it's just taking a while on someone's slow images.
so i want to know if theres a way that i can call a function and if it doesn't complete in a certain amount of time then i can abort it? - thus just leaving the image at whatever its default size is
btw, this is being done in php, prolly shouldda mentioned that earlier