Revision: 31242
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at September 1, 2010 20:45 by miniake
Initial Code
<?php if (preg_match('/zh-tw/i', $_SERVER['HTTP_ACCEPT_LANGUAGE'])) : ?> var browserlang = "zh-TW"; <?php else : ?> var browserlang = "<?php echo substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2) ?>"; <?php endif; ?>
Initial URL
http://wsqsite.com/
Initial Description
Initial Title
Determine Browser Language
Initial Tags
browser
Initial Language
PHP