IISÏ°²×°PHP³ÌÐòÔËÐе÷ÊÔ»·¾³Ïê½â
ÏÖÔÚ°ÑÔÚIISÏ°²×°PHPµÄ¹ý³ÌÏêϸ¼Ç¼ÏÂÀ´±ãÓÚÈÕºóµÄѧϰ£»
ΪÁË·½±ã¸÷λ¶ÁÕßʹÓÃPHP£¬±ÊÕßÑ¡ÔñÁËPHP5.2°æ±¾£¬¶øIISÔòÊÇXPϵͳ×Ô´øµÄIIS 5¡£Ê×ÏÈÎÒÃÇÒª°²×°IIS×é¼þ£¬Ä¬ÈÏÇé¿öÏÂÔÚXPϵͳÊÇûÓа²×°µÄ¡£
¡¡µÚÒ»²½£ºÍ¨¹ý¿ØÖÆÃæ°åµÄÌí¼Ó/ɾ³ýWindows×é¼þÍê³ÉIIS×é¼þµÄ°²×°¹¤×÷¡£
¡¡µÚ¶þ²½£ºÔÚÌí¼Ó/ɾ³ýWindows×é¼þÑ¡Ïî´°¿ÚÖÐÎÒÃÇË«»÷InternetÐÅÏ¢·þÎñ£¨IIS£©£¬È»ºó°ÑÀïÃæµÄ°üÀ¨internetÐÅÏ¢·þÎñ¹ÜÀíµ¥Ôª£¬¹«ÓÃÎļþ£¬ÍòάÍø·þÎñÑ¡ÖС££¨Èçͼ1£©
µÚÈý²½£º²åÈëXP SP2ϵͳ¹âÅ̸´ÖƱØÐëÎļþµ½±¾µØÓ²ÅÌ£¬°²×°Íê±ÏºóÎÒÃÇ¿ÉÒÔ´Ó“¹ÜÀí¹¤¾ß”ÖеēinternetÐÅÏ¢·þÎñ”Æô¶¯IIS³ÌÐò¡££¨Èçͼ2£©
¶þ¡¢°²×°PHP³ÌÐò¼°ÉèÖãº
°²×°ºÃIISºóÎÒÃǾͿÉÒÔ·¢²¼ÏàÓ¦µÄÍøÕ¾ÁË£¬µ«ÊÇÕâʱ»¹ÎÞ·¨ä¯ÀÀPHPÓïÑÔ½¨Á¢µÄÒ³Ã棬ÎÒÃÇÐèÒªÏÈ°²×°PHP²¢ÉèÖñØÐëµÄ²ÎÊý¡£
µÚÒ»²½£ºÏÂÔØPHPÖ÷³ÌÐò£¬±ÊÕßʹÓõÄÊÇPHP 5.2£¬½âѹËõµ½±¾µØ´ÅÅÌcÅ̸ùĿ¼¡££¨Èçͼ3£©
http://down.yevv.cn/Íø°ÉÈí¼þÖ®¼Òwww.yevv.cn/Íø°É-·þÎñÆ÷Àà/PHP5.2ÏÂÔØ.rar
µÚ¶þ²½£º½ÓÏÂÀ´½«PHPÎļþ¼ÐÖеÄphp.ini-dist¸´ÖƵ½C:\WINDOWSĿ¼Ï²¢¸ÄÃûΪphp.ini£¬¸´ÖÆphp5ts.dllºÍlibmysql.dllÁ½¸öÎļþµ½ C:\WINDOWS\system32ÖС££¨Èçͼ4£©
µÚÈý²½£ºÎªÁËÈÃPHPÖ§³ÖMYSQLºÍGD¿âÐèÒª±à¼php.iniÎļþ£¬ÓüÇʱ¾´ò¿ª¸ÃÎļþ£¬²éÕÒ“extension_dir”£¬È»ºó°Ñextension_dir = "./"ÐÞ¸ÄΪextension_dir = "C:\php\ext"£»ÁíÍ⻹ÐèÒª°Ñ“;extension=php_mysql.dll”Ç°µÄ·ÖºÅÈ¥µô£¬¸Ä³Éextension=php_mysql.dll¡£°Ñ“;extension=php_gd2.dll”Ç°µÄ·ÖºÅҲȥµô£¬ÐÞ¸ÄΪextension=php_gd2.dll¡£
ÖÁ´ËÎÒÃǵÄPHP¾Í°²×°Íê³ÉÁË£¬µ«ÊÇÓÉÓÚĬÈÏÇé¿öÏÂIISÊDz»Ö§³ÖPHPµÄ£¬Ö»ÄÜÖ§³ÖASP¡£ËùÒÔ»¹ÐèÒªÎÒÃÇÏñ½¨Á¢CGIÄÇÑù´´½¨PHPµÄÓ³Éä¹Øϵ¡£
Èý¡¢ÅäÖÃIISµÄPHPÓ³É䣺
Ò»°ãÇé¿öÏÂÉèÖÃijÓïÑÔ»òÖ´ÐгÌÐòµÄÓ³Éä¹Øϵ¶¼ÊÇͨ¹ýISAPIɸѡÆ÷½â¾öµÄ£¬PHPÒ²²»ÀýÍâ¡£
µÚÒ»²½£º´ò¿ªIIS£¬ÔÚĬÈÏÍøÕ¾ÉϵãÓÒ¼üÑ¡Ôñ“ÊôÐÔ”¡££¨Èçͼ5£©
µÚ¶þ²½£ºÕÒµ½“Ö÷Ŀ¼”±êÇ©£¬µãÓÒϽǵēÅäÖÔ°´Å¥¡££¨Èçͼ6£©
µÚÈý²½£ºÔÚ“Ìí¼ÓºÍ±à¼Ó¦ÓóÌÐòÀ©Õ¹ÃûÓ³Éä”´°¿ÚÖУ¬Í¨¹ýä¯ÀÀ°´Å¥ÕÒµ½c:\php\php5isapi.dllÎļþ£¬À©Õ¹
Ïà¹ØÎĵµ£º
Floating point precision
It is typical that simple decimal fractions like 0.1
or
0.7
cannot be converted into their internal binary
counterparts without a small loss of precision. This can lead to
confusing
results: for example, floor((0.1+0.7)*10)
will usually
return 7
......
¶ÔÓڽű¾°²È«Õâ¸ö»°ÌâºÃÏñÓÀԶûÍêûÁË£¬Èç¹ûÄã¾³£µ½¹úÍâµÄ¸÷ÖÖ¸÷ÑùµÄbugtraqÉÏ£¬Äã»á·¢ÏÖÓÐÒ»°ëÒÔÉ϶¼ºÍ½Å±¾Ïà¹Ø£¬ÖîÈçSQL
injection£¬XSS£¬Path Disclosure£¬Remote commands
executionÕâÑùµÄ×ÖÑ۱ȱȽÔÊÇ£¬ÎÒÃÇ¿´ÁËÖ®ºóµÄÓÃ;ÄѵÀ½ö½öÊÇ×¥È⼦?¶ÔÓÚÎÒÃÇÏë×öweb°²È«µÄÈËÀ´Ëµ£¬×îºÃ¾ÍÊÇÄÃÀ´Ñ§Ï°£¬¿ÉÊÇÍòÎï×¥¸ùÔ´£¬ÎÒà ......
<?php
/**
* PHP100.com - ¸öÈ˸оõ·Ç³£¼òµ¥£¬Ö»ÒªÓеãPHP»ù´¡µÎÈ˶¼Ó¦¸ÃÄÜ¿´¶®~~
* Apache2 + PHP5.0
* Version:1.0
* ͬʱ¸ÐлPHP100ËùÓеÄÐÖµÜÃÇ
* ——————————————&m ......
Session]
; ³ý·ÇʹÓÃsession_register()»ò$_SESSION×¢²áÁËÒ»¸ö±äÁ¿¡£
; ·ñÔò²»¹ÜÊÇ·ñʹÓÃÁËsession_start()£¬¶¼²»»á×Ô¶¯Ìí¼ÓÈκÎsession¼Ç¼¡£
; °üÀ¨resource±äÁ¿»òÓÐÑ»·ÒýÓõĶÔÏó°üº¬Ö¸Ïò×ÔÉíµÄÒýÓõĶÔÏ󣬲»Äܱ£´æÔڻỰÖС£
; register_globalsÖ¸Áî»áÓ°Ïìµ½»á»°±äÁ¿µÄ´æ´¢ºÍ»Ö¸´¡£
session ......
array_flip
½»»»Êý×éÖеļüºÍÖµ
$arr1 = array('a'=>1,'b'=>2,'c'=>3,'d'=>4);
$array = array_flip($arr1);
showArr($array);
/*
Array
(
[1] => a
[2] => b
[3] => c
[4] => d
)
*/
array_key_exists
¼ì²é¸ø¶¨µÄ¼üÃû»òË÷ÒýÊÇ·ñ´æÔÚÓÚÊý×éÖÐ(Ò²¿ÉÓÃÓÚ¶ÔÏó ......