Jump to content
php.lv forumi

kļūda skriptā


torrentz

Recommended Posts

man

<?php

if (strstr($_SERVER['USER_AGENT'], 'Windows NT 5')){$os='Windows NT 5';}

else {$os='Other';}

print"$os<br/>";

$ua = $_SERVER['HTTP_USER_AGENT'];

print"$ua";

?>

izvada:

Other

Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6

Edited by torrentz
Link to comment
Share on other sites

Nu ja tev galigi nekas nesanak pamegini f-ju get_browser, tikai to vajaga ieslegt.

 

For more get_browser

Link to comment
Share on other sites

×
×
  • Create New...