Possible Duplicate:
using php to check is a javascript file has been loaded?
Is it possible to check if the js file is already loaded in a page using PHP? Because I have some block on my page that needs the js file. So if the js file is not loaded then don't load this block.
It's something like this:
if js file is not loaded then don't execute this php script else execute this php script