tags:

views:

60

answers:

2

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
+2  A: 
  1. fetch external data separately from request (e.g cron)
  2. combine set_time_limit and register_shutdown_function
Lauri