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

Apache+php+mysqlµÄÅäÖÃ


Apache¹Ù·½ÏÂÔصØÖ·£ºapache_2.0.55-win32-x86-no_ssl.msi£¬¸ü¶à°æ±¾ÔÚÕâÀ
php¹Ù·½ÏÂÔصØÖ·£ºphp-5.0.5-Win32.zip£¬¸ü¶à¾µÏñÏÂÔصØÖ·£¬¸ü¶à°æ±¾ÏÂÔØ£»
mysql¹Ù·½ÏÂÔصØÖ·£ºmysql-4.1.14-win32.zip£¬¸ü¶à¾µÏñÏÂÔصØÖ·£¬¸ü¶à°æ±¾ÏÂÔØ¡£
ApacheµÄÅäÖãº
ÎÒÒ»¿ªÊ¼Ôõô¸ã¶¼²»ºÃ£¬ÎÒÉÏÍøÕÒ£¬ÓеÄ˵ÊÇiisµÄÎÊÌ⣬ÓеÄ˵ÊÇ·À»ðǽµÄÎÊÌ⣬¿ÉÎÒÕÕ×öÁË£¬»¹ÊÇûÓкã¬Æô¶¯²»ÁË£¬¿ÉÎÒÈ¥ÎÒͬѧÄÇÀïһϾ͸ãºÃÁË£¬ËµÃ÷ÊÇÎҵĵçÄÔµÄÎÊÌ⣬ºóÀ´ÎÒ¾ÍÖØ×°ÁËϵͳ¡£½á¹û¾Í×°ºÃÁË¡£¶ÔÁË£¬Ñ¸À׿ªÁ˵Ļ°Ò²µÄÆô¶¯²»Á˵ġ£http://tech.163.com/06/0206/11/299AMBLT0009159K_2.html
ÏÂÃæ¾Í˵һÏÂÅäÖÃphpµÄÎÊÌ⣺
ÔÚÅäÖÃÕâphpʱ¡£Ò»¿ªÊ¼ÎÒûÓаѓÔÚPaths and DirectoriesÏÂÕÒµ½extension_dir=
ÕâÀïÉèÖõÄÊÇPHPËÑË÷À©Õ¹¿âµÄλÖ㬽«Æä·¾¶ÉèΪextensionsÎļþ¼ÐµÄλÖ㬼´¸Ä³É£º ×Ö´®7 
extension_dir= "C:\php\ext"”
 
µ½ÕâÀïphp.ini¾ÍÅäÖýáÊø¡£½ÓןÜÖØÒªµÄÒ»µã½«
C:\PHP\libmysql.dll£¬C:\PHP\ext\php_mysql.dll£¬C:\PHP\ext\php_mysqli.dll ×Ö´®8 
¿½±´µ½C:\Windows\system32Ï£¬ÕâÑùPHP5²ÅÄÜÖ§³ÖMYSQL¡£
 
°Ñphp.ini-dist¸´ÖƵ½C:\windows Ï¸ÄÃûΪ php.ini£¨×°¹ýphpµÄ¶¼×ö¹ý°É£©http://tieba.baidu.com/f?kz=444464747È»ºóÐÞ¸ÄÁ˼¸¸öµØ·½£º
ÕâÁ½¸öÎÊÌâ¸ãºÃ¡£¾ÍһֱûÓиãºÃ¡£
¿ÉºóÀ´ÎÒ¸ãÁËҲûÓÐÓᣲâÊÔÒ³Ã滹ÊÇÓÐÎÊÌ⣬ºóÀ´ÎÒ¾õµÃ£¬»á²»»áÓа汾µÄÎÊÌ⣬ÎÒÓÖÈ¥ÍøÉÏÕÒÁËһϣ¬ÕÒµ½ÁË£¨APACHE 2.2.X°æ±¾ÒÔÉÏÒªÔö¼Ó²å¼þ²ÅÖ§³ÖPHP 5µÄ£©ÎҾͰÑÎÒapacheµÄ°æ±¾¸ÄΪÁËapache2.0.55µÄ£¬ÎÒÔ­À´µÄÊÇ2.2.4£¬ÔÙ×°ÉÏÈ¥¾ÍºÃÁË¡£


Ïà¹ØÎĵµ£º

PHPµÄÇ°¾°

   Ëæ×ÅWeb2.0µÄÉýλ¥ÁªÍøµÄ·¢Õ¹Ó­À´ÐÂÒ»ÂÖµÄÈȳ±£¬ÓÉÓÚ»¥ÁªÍø±¾ÉíµÄ¿ìËÙ·¢Õ¹¡¢²»¶Ï´´ÐµÄÌص㣬¾ö¶¨ÁËÖ»ÓÐÒÔ×î¿ì¿ª·¢ËٶȺÍ×îµÍ³É±¾£¬²ÅÄÜȡʤ£¬²ÅÄÜʼÖÕ±£³ÖÒ»¸öÍøÕ¾µÄÁìÏÈÐÔºÍÎüÒý¸ü¶àµÄÍøÃñ¡£
 
»¥ÁªÍøµÄÆóÒµÉú´æºÍ¾ºÕùµÄºËÐÄÔÚÓÚ¼¼Êõ£¬¼¼Êõ/Ñз¢È˲ÅÓÀÔ¶ÊÇÕâЩÆóÒµ²»¿É»òȱµÄ¹Ø¼üÈËÎֻÓÐÓµÓÐ×ÊÉ ......

PHPµÄ±àдSQLÓï¾äʱ¶ÔÐèҪתÒå×Ö·ûµÄ´¦Àí

1. ¶ÔÓÚPHP magic_quotes_gpc=onµÄÇé¿ö£¬ ÎÒÃÇ¿ÉÒÔ²»¶ÔÊäÈëºÍÊä³öÊý¾Ý¿âµÄ×Ö·û´®Êý¾Ý×÷
addslashes()ºÍstripslashes()µÄ²Ù×÷,Êý¾ÝÒ²»áÕý³£ÏÔʾ¡£ Èç¹û´ËʱÄã¶ÔÊäÈëµÄÊý¾Ý×÷ÁËaddslashes()´¦Àí£¬
ÄÇôÔÚÊä³öµÄʱºò¾Í±ØÐëʹÓÃstripslashes()È¥µô¶àÓàµÄ·´Ð±¸Ü¡£ 2. ¶ÔÓÚPHP magic_quotes_gpc=off µÄÇé¿ö ±ØÐëÊ¹Ó ......

PHPËæ»úÊýÉú³ÉÓëʹÓýâÎö

ÔÚPHP³ÌÐòÉè¼ÆÖУ¬Ëæ»úÊýµÄÉú³ÉÓÈΪÖØÒª¡£ÎÒÃÇÐèÒªÓÃËæ»úÊýÔÚÎÒÃǵÄÒ³ÃæÖÐչʾËæ»ú¼Ç¼£¨±ÈÈçͼƬ¡¢Óû§¼Ç¼¡¢ÎÄÕÂIDµÈ£©¡£ÎÒÃÇ»¹¿ÉÒÔʹÓÃËæ»úÊýÉè¼ÆÈκÎÎÒÃÇÏëÏóµÄ³ÌÐò½á¹¹¡£
Ê×ÏÈÀ´ÈÏʶһÏÂPHPÌṩµÄËæ»úÊýº¯Êýrand()¡£PHPµÄrand()º¯Êý½«·µ»ØËæ»úÕûÊý£¬¾ßÌåʹÓ÷½·¨ÈçÏÂ
rand(min,max)
¿ÉÑ¡²ÎÊýminºÍmax¿ÉÒÔʹrand() · ......

php·ÃÎʳÉÔ±±äÁ¿ºÍ³ÉÔ±·½·¨

php½Ì³Ì:·ÃÎÊPHPÀàÖгÉÔ±±äÁ¿»ò·½·¨
ÔÚ·ÃÎÊPHPÀàÖеijÉÔ±±äÁ¿»ò·½·¨Ê±£¬Èç¹û±»ÒýÓõıäÁ¿»òÕß·½·¨±»ÉùÃ÷³Éconst»òÕßstatic,ÄÇô¾Í±ØÐëʹÓòÙ×÷·û::,
·´Ö®Èç¹û±»ÒýÓõıäÁ¿»òÕß·½·¨Ã»Óб»ÉùÃ÷³Éconst»òÕßstatic,ÄÇô¾Í±ØÐëʹÓòÙ×÷·û->¡£
ÁíÍ⣬Èç¹û´ÓÀàµÄÄÚ²¿·ÃÎÊconst»òÕßstatic±äÁ¿»òÕß·½·¨,ÄÇô¾Í±ØÐëʹÓÃ×ÔÒýÓõ ......

PHP Ä£Äâ Post µÄÁ½ÖÖ·½·¨

function poster()
{
$URL = 'http://www.yw56.com.cn/DIY.asp'; //ÐèÒªÌá½»µ½µÄÒ³Ãæ
//ÏÂÃæÕâ¶ÎÊÇÒªÌá½»µÄÊý¾Ý
$post_data['orderid'] = "YW861736303CN";
$post_data['button'] = "Ìá½»";

$referrer="http://www.yw56.com.cn/DIY.asp";
$Cookie=&qu ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ