Benim index.php iki sayfa yönlendirmeyi var. Sayfalar example_system_os.php
ve example_mobile_os.php
bulunmaktadır.
PHP kullanıcının işletim sistemini belirlemek için?
Tarayıcı tarafından gönderilen get_browser
function can be used to extract a couple of information the User-Agent
HTTP başlık.
Istemci işletim sistemi hakkında - yani bu bilgiler arasında, bu işletim sistemi tarayıcının çalışan hakkında bazı veriler var gibi görünüyor.
Quoting the example given on the manual page of get_browser
:
Array
(
[browser_name_regex] => ^mozilla/5\.0 (windows; .; windows nt 5\.1; .*rv:.*) gecko/.* firefox/0\.9.*$
[browser_name_pattern] => Mozilla/5.0 (Windows; ?; Windows NT 5.1; *rv:*) Gecko/* Firefox/0.9*
[parent] => Firefox 0.9
[platform] => WinXP
[browser] => Firefox
[version] => 0.9
But note that the User-Agent HTTP header is sent by the client, which means :