i have a php page which auto refreshes itself after 10 seconds. Some time the page takes too long to load as its fetching data from external urls . How can i stop execution of the script after 10 seconds and then reload the page.
A:
- restart Apache server
- kill php process
- set_time_limit in your script above neuralgic piece of code
hsz
2010-04-26 11:24:40
+2
A:
- fetch external data separately from request (e.g cron)
- combine set_time_limit and register_shutdown_function
Lauri
2010-04-26 11:28:54