Cupidvogel Posted May 18, 2012 Share Posted May 18, 2012 Hi, suppose the user requests a page www.foo2.php. Now if it is a link embedded in another page, say www.foo1.php, then Javascript can send the server browser info before furnishing the page. But is it possible to let the server know which browser is being used when the user requests the page by just typing the url http://www.foo2.php and hitting enter? Quote Link to comment https://forums.phpfreaks.com/topic/262739-how-to-get-browser-name-when-page-request-is-sent-by-typing-url/ Share on other sites More sharing options...
craygo Posted May 18, 2012 Share Posted May 18, 2012 can use $_SERVER['HTTP_USER_AGENT']; Also you can use that in conjunction with get_browser(). Read here http://www.php.net/manual/en/function.get-browser.php Ray Quote Link to comment https://forums.phpfreaks.com/topic/262739-how-to-get-browser-name-when-page-request-is-sent-by-typing-url/#findComment-1346621 Share on other sites More sharing options...
Cupidvogel Posted May 18, 2012 Author Share Posted May 18, 2012 Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/262739-how-to-get-browser-name-when-page-request-is-sent-by-typing-url/#findComment-1346626 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.