Hi,
i hope there is an alternative to this problem,
i''m using a script that redirects depending on the content of a database, so it redirects on page 1 if data 1 exists or page 2 if data 1 doesn't exist.
so i needed a php script to verify that, the page shows at the moment before redirecting for
SLEEP(15);
but i also use this website to admin a few things, and when i access my datas, al my php scripts seem to suffer from that SLEEP function!!
I thought it woud only affect the current running script from the page that calls the sleep function.
Is there an alternative? ( i can't call a loop to make a timer, it loads the cpu too high)
javascript redirection won't offer me a database check..
so does anybody have a idea?
thanks a lot in advance.



Reply With Quote

Bookmarks