Hi! I need a script that will check if the explorer is netscape or IE... I have made my own menus like cool menus(javascript).... but it doesnt run in Netscape, i made a netscape version to. I have php functions that build the javascript together and i would to know how to check if the explorer is netscape or IE cause php will build the function differantly.
<?php echo $HTTP_USER_AGENT; ?>
this is what it brough up for me
"Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)"
hope you can use this
also you can use get_browser() which returns an object. This will give you a bit more information. For either get_browser() or $HTTP_USER_AGENT to work, I am pretty sure you need to have a browser.ini file on the server and have your php.ini file pointing to it.
HTTP_USER_AGENT worked but it says microsoft windows and netscape... if its IE its windows and IE. Is there anyway to return just Netscape and its version.. or just IE and its version? i.e. Netscape in variable name... and in variable version 6? or in variable explorer Netscape 6?