Hi there,
TemplatesForAll, I guess sfaizanh wants to have the same effect as the JavaScript he/she posted here in PHP.
I'm not a Nuke user and can't really help you how to integrate this into your Nuke, but there are some things you may want to know:
1) You cannot excute JavaScript before PHP, simply because PHP codes get excuted before HTML and JavaScript is loaded at the same time as HTML (more or less).
2) If you are interested in sniffing the visitors' user agent, etc, the counterpart in PHP for this is $_SERVER array. Check this out:
http://ca3.php.net/manual/en/reserve...riables.server
Hope this gives you some idea.