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

Windows ÏÂPHP+IISµÄ°²×°·½·¨(PHP°æ±¾Îª5.0)

×î½üÐèҪʹÓÃÏÂPHPÏà¹ØµÄ¶«Î÷£¬²éÕÒÁËһЩ×ÊÁÏ£¬ÏÖ½«PHPÅäÖ÷½·¨¼Ç¼һÏ£¬ÒÔÃâÒÔºóÍü¼Ç£¬ºÇºÇ£¬³õѧÕߣ¬¸÷λͬѧ²»ÒªÅÄש£¬¿ªÊ¼ÕýÌ⣬Ö÷Òª²Ù×÷ÈçÏ£º
1,°Ñphp-5.0.0-Win32.zip½âѹ·Åµ½C:\php
2,php.ini-dist¸ÄÃûΪphp.ini,ÕÒµ½µÚ438ÐÐ¸Ä³É extension_dir = c:\php\ext
3,È¥µô565ÐÐ;extension=php_mysql.dllÇ°ÃæµÄ";"×¢ÊÍ·ûºÅ
4,¸´ÖÆphp.iniµ½WinntĿ¼ÏÂ,ÔÙ¸´ÖÆphp5ts.dllºÍlibmysql.dllµ½WINNT\system32\ÖÐ
5,´ò¿ªIIS,Ìí¼ÓÒ»¸öphpºó׺. (Ö¸Ïòc:\php\php5isapi.dll)£¬ÈçÏÂͼËùʾ£º
6£ºÖØÆôIIS£»
7£º²âÊÔPHP»·¾³£¬½¨Á¢ºó׺Ϊ.phpµÄÎļþ£¬ÆäÄÚÈÝΪ<?phpinfo()?>£¬½¨Á¢ÐéÄâĿ¼£¬Ö¸Ïò¸ÃÎļþ£¬´ÓIISÖÐÔËÐиÃÎļþ£¬½«»áÏÔʾphp»·¾³²ÎÊý
ÈçÉÏphp»·¾³ÅäÖþͺÃÁË


Ïà¹ØÎĵµ£º

³É¾ÍPHP¸ßÊÖµÄÎå¸ö±ØÓÉ֮·

¾­³£ÓÐһЩ¾­Ñé²»×ãµÄPHP¿ª·¢ÈËÔ±ÔÚFreenodeµÄphp
IRCƵµÀÉÏÎÊÎÊÌâ¡£Èç¹ûÎÊÌâºÜËöË飬»òÕß´ð°¸ÏÔ¶øÒ×¼û£¬»ò±íÏÖµÃÏóÒ»¸ö²ËÄñ£¬ºÜ¿ìËûÃǾͻᷢÏÖ»áÊܵ½ÈçÏÂһЩ»Ø¸´µÄÅں䣺“È¥¶Á¸ÃËÀµÄÊÖ²áÈ¥°É”£¬“ºÃ
ºÃȥѧһѧPHP°É”£¬“ÎÒÃDz»ÊÇÄã¸öÈ˵ĵ¼Ê¦”»ò¸üÖ±½ÓµÄ“ÄãÐèÒª³ÉΪһ¸ö¸üºÃµ ......

phpѧϰ±Ê¼Ç

µÚÒ»Õ   PHP¸ÅÊö
1¡¢  »ù±¾Óï·¨
a)         Òª°ÑphpǶÈëÒ³Ã棬¿ÉÒÔ°ÑËü·ÅÔÚPHP±êÇ©ÄÚ
<?php       ?>
b)         ÔÚbody±êÇ©½áÊø֮ǰ£¬²åÈëphp´úÂë
c)     ......

ÈçºÎÔÚphpÖÐÐÞ²¹XSS©¶´

ÔÚPHPÖÐÐÞ²¹XSS©¶´£¬ÎÒÃÇ¿ÉÒÔʹÓÃÈý¸öPHPº¯Êý¡£
¡¡¡¡ÕâЩº¯ÊýÖ÷ÒªÓÃÓÚÇå³ýHTML±êÖ¾£¬ÕâÑù¾Íû°ì·¨×¢Èë´úÂëÁË¡£Ê¹Óøü¶àµÄº¯ÊýÊÇhtmlspecialchars() £¬Ëü¿ÉÒÔ½«ËùÓеÄ"<"Óë">"·ûºÅת»»³É"<" Óë">;"¡£ÆäËü¿É¹©Ñ¡ÔñµÄº¯Êý»¹ÓÐhtmlentities(), Ëü¿ÉÒÔÓÃÏàÓ¦µÄ×Ö·ûʵÌå(entities)Ìæ»»µôËùÓÐÏëÒªÌæ»»µôµÄÌØÕ÷Âë(cha ......

phpµ¼Èëµ½Excel µÄ utf8¡¢gbk ±àÂë

phpµ¼Èëµ½excel-Ö§³Öutf8ºÍgbkÁ½ÖÖ±àÂë
phpµ¼Èëµ½excelÂÒÂëÊÇÒòΪutf8±àÂëÔÚxpϵͳ²»Ö§³ÖËùÓÐutf8±àÂëתÂëһϾÍÍêÃÀ½â¾öÁË
utf-8±àÂë°¸Àý
<?php 
header("Content-Type: application/vnd.ms-excel; charset=UTF-8"); 
header("Pragma: public"); 
header("Expires: 0"); 
header("Cache ......

PHP ÕýÔòÅжÏÖÐÎÄ UTF 8 & GBK

UTF-8Æ¥Åä: ÔÚjavascriptÖУ¬ÒªÅжÏ×Ö·û´®ÊÇÖÐÎÄÊǺܼòµ¥µÄ¡£±ÈÈ磺
var str = "php±à³Ì";
if (/^[\u4e00-\u9fa5]+$/.test(str)) {
alert("¸Ã×Ö·û´®È«²¿ÊÇÖÐÎÄ");
}
else{
alert("¸Ã×Ö·û´®²»È«²¿ÊÇÖÐÎÄ");
} phpÖУ¬ÊÇÓÃ\x±íʾʮÁù½øÖÆÊý¾ÝµÄ¡£ÓÚÊÇ£¬±ä»»³ÉÈçϵĴúÂ룺
$str = "php±à³Ì";
if (preg_match("/^[\x4 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ