Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

2010.05.06 PHP È¡µÃ¿Í»§¶ËÐÅÏ¢

<?php
/*
×÷ÓãºÈ¡µÃ¿Í»§¶ËÐÅÏ¢
²ÎÊý£º
·µ»Ø£ºÖ¸¶¨µÄ×ÊÁÏ
ʹÓãº
    $code = new clientGetObj;
    1¡¢ä¯ÀÀÆ÷£º$str = $code->getBrowse();
    2¡¢IPµØÖ·£º$str = $code->getIP();
    4¡¢²Ù×÷ϵͳ£º$str = $code->getOS();
*/
class clientGetObj
{
    function getBrowse()
    {
        global $_SERVER;
        $Agent = $_SERVER['HTTP_USER_AGENT'];
        $browser = '';
        $browserver = '';
        $Browser = array('Lynx', 'MOSAIC', 'AOL', 'Opera', 'JAVA', 'MacWeb', 'WebExplorer', 'OmniWeb');
        for($i = 0; $i <= 7; $i ++){
            if(strpos($Agent, $Browsers[$i])){
                $browser = $Browsers[$i];
                $browserver = '';
            }
        }
        if(ereg('Mozilla', $Agent) && !ereg('MSIE', $Agent)){
            $temp = explode('(', $Agent);
            $Part = $temp[0];
            $temp = explode('/', $Part);
            $browserver = $temp[1];
            $temp = explode(' ', $browserver);
            $browserver = $temp[0];
  &nbs


Ïà¹ØÎĵµ£º

php??VC9,VC6,Thread Safe,Non Thread SafeµÄÒâ˼???

VC9,VC6,Thread Safe,Non Thread SafeµÄÒâ˼?
ʱ¼ä:2009-10-07 10:55À´Ô´:ÍøÂç ×÷Õß:CNITonline.comÕûÀí ÎÒҪͶ¸å ×¢²áIT¼ÒÔ°
×î½üÔÚPHP¹ÙÍøÉÏ¿´µ½ÓÖÓÐаæµÄPHPÏÂÔØÁË£¬ÓÚÊÇÉÏÈ¥ÕÒÕÒFor WindowsµÄ°æ±¾£¬¿ÉÊÇÒ»¿´È·ÉµÑÛÁË£¬Ò»¹²¸øÁËËĸö°æ±¾£¬VC9 x86 Non Thread Safe¡¢VC9 x86 Thread Safe¡¢VC6 x86 Non Thread Safe¡¢VC ......

php+AJAX´«ËÍÖÐÎĻᵼÖÂÂÒÂëµÄÎÊÌâµÄ½â¾ö·½·¨

¹ØÓÚÔÚAJAXÖÐGET»ØµÄResponseTextÖÐÎÄÂÒÂëµÄ×î¼ò½â¾ö°ì·¨
//Èç¹û´«ËͲÎÊýÊÇÖ±½Ó¸³ÓèµÄ£¬¾Í»á²úÉúÂÒÂë!
´úÂëÈçÏÂ:
http_request.open("POST",url,true);
http_request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
http_request.send("action="+strName+"&val="+val); //Èç¹ûvalµÄ ......

PHPÔÚXPÏÂIISºÍApache2·þÎñÆ÷Éϵݲװ

×î½ü£¬ÓÐÐí¶àÅóÓÑÎÊÎÒÔÚWindowsXpÏÂPHPµÄ°²×°¹ý³Ì£¬ÕýºÃ×î½üÎÒÔÚ×Ô¼ºµÄ»úÆ÷Éϳɹ¦µÄÒÔÄ£¿é»¯µÄ·½Ê½°²×°ÁËPHP4.23¡£¼ÈÈ»Õâô¶àÅóÓÑÐèÒª£¬ÎÒ¾ÍÒÔ×î³£¼ûµÄIISºÍApache·þÎñÆ÷ΪÀý£¬°ÑPHPÔÚWindowsXPϵݲװ¹ý³Ìд³öÀ´°É£¬Ï£ÍûÄܶÔÒª°²×°PHPµÄÅóÓÑÓеã°ïÖú¡£Èç¹û²»¼ÓÌØÊâ˵Ã÷£¬ÒÔϵĽéÉÜͬʱҲÊÊÓÃÓÚWin2000°æ±¾¡£
Ò»¡¢¸ÅÊö£ ......

PHP V5.3 ÔÚ Unicode ·½ÃæÓкÎÐÂÌØÐÔ£¿

תÔØ×Ô£ºhttp://www.ibm.com/developerworks/cn/opensource/os-php-5.3unicode/index.html
Web
ÊÇÒ»¸öÓÃÀ´¿ª·¢È«ÇòÐÔÓ¦ÓóÌÐòºÍ·þÎñµÄÀíÏëƽ̨¡£Òª´´½¨Ò»¸öÕæÕý¾ßÓйú¼Ê÷ÈÁ¦µÄÓ¦ÓóÌÐò£¬±ØÐë¶ÔËü½øÐе÷ÕûÒÔ±ãÄܹ»ÒÔ¸÷ÖÖÓïÑԺͱàдϵͳ´¦ÀíºÍÏÔʾÊý¾Ý¡£
³£ÓÃËõд´Ê

HTML£º
³¬Îı¾±ê¼ÇÓïÑÔ
HTTP£º
³¬Îı¾´« ......

·ÖÎöPHPÖеĻº´æ¼¼Êõ

¹ØÓÚPHPµÄ»º´æ¼¼ÊõÎÒ¸öÈ˵Ķ¨ÒåÊÇ¿ÉÒÔ·Ö³É3¸öÀà±ð1;
»º´æÄ£¿éÕâÕâ¸öÊÇÔÚ·þÎñÆ÷ÉÏ×öµÄ»º´æÉèÖÃ, ±ÈÈçZend¹«Ë¾µÄCache²úÆ·µÈ, Ö÷ÒªÔ­ÀíÊÇͨ¹ý¶ÔPHP´úÂëÎļþµÄÒ»´Î±àÒë±£´æÔÚÄÚ´æÖÐ, ͨ¹ý¼õÉÙI /OµÄ²Ù×÷À´¼Ó¿ì·ÃÎÊËÙ¶È, ²»ÔÚ±¾ÎÄÌÖÂÛ·¶Î§Ö®ÁÐ2;
HTML·½Ê½»òÐíÄã˵PHPÉú³ÉHTMLµÄ·½Ê½²»ÔÚ±¾ÎÄÌÖÂ۵ķ¶Î§Ö®ÁÐ, µ«ÊÇÎÒ¸öÈËÈËΪÕâÖ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ