No... PHP and JavaScript are executing at different time and at different place. Besides, they are executed by different programs.
Are you trying to measure execution time of a query??
Look at: http://www.php.net/microtime
No, I'm trying to get a little animation on the left frame to start when a query begins a pull (when the page begins to load) and then stop the animation when the page and data are fully loaded.
I suppose that the action is triggered by a link. Then you can put the 'start' javascript code in onclick event of that link. The 'stop' code would go into onload event of the document body tag.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php