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

php»·¾³´î½¨£¨×Ô¼ºÒ²Ð´Ò»Æª£©

Ê×ÏÈ×¢Òâ°æ±¾ÎÊÌ⣬һ¶¨Òª×Ðϸ²é¿´php manualÉϵÄÄÚÈÝ£¬Èçhttp://www.php.net/manual/en/install.windows.apache2.php ÉÏÓÐÒ»¸önote:
Note
:
Apache 2.2 Support

Users of Apache 2.2 should note that the DLL file for Apache 2.2 is
named php5apache2_2.dll
rather than php5apache2.dll
and is available only for PHP 5.2.0 and later.
See also » http://snaps.php.net/
×Ô¼ºÐ´ÁË¿ìÒ»¸öÔµÄphp³ÌÐòÁË£¬ÓõÄapacheÊÇ2.2.14,½á¹û½ñÌìÒ»¿´phpĿ¼Ï»¹ÊÇphp5apache2.dll£¬ÔΣ¬×Ô¼ºÒ²Ò»Ö±Óü¯³É¿ª·¢»·¾³easyeclipse for php ,¹«Ë¾µÄÕą̂µçÄÔÉÏÒÔÇ°Ò²×°¹ýºÜ¶à°æ±¾µÄphp£¬¶¼²»ÖªµÀÔõôÅÜÆðÀ´µÄ£¬½ñÌì¾Í³¹µ×µÄ´òÆÆÉ°¹øÎʵ½µ×£¬×Ô¼ºÑо¿¸öÃ÷°×¡£
1£ºÊ×ÏÈ°²ÉÏapache2.2.14ÒÔºó£¬Õâʱºò¿Ï¶¨ÊDz»Ö§³ÖphpµÄ£¬¼ÙÈçÔÚhtdocĿ¼ÏÂн¨Ò»¸ötest.phpÎļþ·ÃÎʵĻ°£¬ÄÇôÕë¶Ô²»Í¬µÄä¯ÀÀÆ÷http://localhost/test.phpÓв»Í¬µÄ·´Ó¦,firefoxÊÇÖ±½ÓÏÔʾ¸ÃÎļþ test.phpµÄÄÚÈÝ£¬¶ø£É£ÅÊÇÏÂÔظÃÎÊÎļþ¡£¸Õ°²×°ÍêapacheÒÔºóÔÚhttp.confÖÐÊÇÕÒ²»µ½ÈκιØÓÚphpµÄÐÅÏ¢µÄ¡£
2:¿ªÊ¼ÔÚapacheÖм¯³Éphp£¬ÒÔÇ°¾ÍÊÇÉÏÍøËÑË÷£¬Ò»Ö±´©¶þÊÖЬ£¬½ñÌìÈ¥´©»ØÒ»ÊÖЬ£¬ÉϹÙÍø¿´¿´È¥£¬ÕÕ׏ÙÍøµÄÀ´×ö£¬ÏÈ°²×°php£¬ÎÒϵÄÊÇphp-5.2.12-win32-installer.msi£¬ÏÈ°²×°£¬Õâ¸ö±È½ÏÖÇÄÜÔÚ°²×°µÄʱºòÈÃÄãÑ¡ÔñÄã°²×°µÄ·þÎñÆ÷ʱʲôÓкܶ࣬£¨ÔÛÃǵ±È»ÊÇÑ¡Ôñapache2.2.xÁË£¬£©£¬È»ºó»¹ÓÐÒ»²½ÈÃÄãÑ¡ÔñÄã°²×°µÄapacheµÄhttp.confÎļþµÄλÖ㬣¨ºÇºÇ£¬Õâ¸öɵ×Ó¶¼ÖªµÀʲôÒâ˼ÁË£¬¾ÍÊÇÕâ¸ö°²×°³ÌÐòÏòÒªÔÚhttp.conf Õâ¸öÎļþÀïÌí¼ÓһЩÅäÖÃÐÅϢߣ¬²»¹ý»¹ÊDz»¹»ÖÇÄÜ£¬¸É´àÀ´¸ö×Ô¶¯ËÑË÷µ½http.conf λÖöàºÃ°¡£©£¬ºóÀ´ÔÛÃÇÑ¡ÉÏhttp.confËùÔÚµÄĿ¼¼´¿É£¬ºÃÁË£¬°²×°ÍêÒÔºó£¬ÔÛÃÇÔÙÈ¥¿´Ò»Ï http.confÎļþÀï¶àÁËʲôÅäÖÃÐÅÏ¢£º
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "C:/php/"
LoadModule php5_module "C:/php/php5apache2_2.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
3£º´ò¿ª£É£Å£¬ÊäÈëhttp://localhost/test.php
apache·þÎñÆ÷Õý³£½âÎöphpÎļþ£¡
µ½´Ë³É¹¦£¡
4£ºphpÒ³ÃæĬÈÏÓдíÎóʱ²»·µ»Ø¸ö¿Í»§µÄ£¬Õâ¸ö±È½Ï¶ñÐÄ£¬¶¼²»Öª´úÂëÄÄÀï´íÁË£¬Ê²Ã´¶¼Ã»ÓУ¬¿ÉÒÔ°ÑÕâ¸ö´ò¿ª£¬ÔÚphp.iniÀï
δÐÞ¸ÄÇ°£ºdisplay_errors = off
ÐÞ¸ÄΪ:display_errors = on
²»ÐУ¬ÀÏ°å˵²»ÈÃÓÃphp5.2.0,Ö


Ïà¹ØÎĵµ£º

PHP¸ß¼¶Óï·¨£¨Ò»£©—— Îļþ´¦Àí


PHP
Îļþ´¦Àí
fopen()
º¯ÊýÓÃÓÚÔÚ
PHP
Öдò¿ªÎļþ¡£
´ò¿ªÎļþ
fopen()
º¯ÊýÓÃÓÚÔÚ
PHP
Öдò¿ªÎļþ¡£
´Ëº¯ÊýµÄµÚÒ»¸ö²ÎÊýº¬ÓÐÒª´ò¿ªµÄÎļþµÄÃû³Æ£¬µÚ¶þ¸ö²ÎÊý¹æ¶¨ÁËʹÓÃÄÄÖÖģʽÀ´´ò¿ªÎļþ£º
<html>
<body>
 
<?php
$file=fopen("welcome.txt","r");
?> ......

PHP¸ß¼¶Óï·¨£¨¶þ£©—— ÃæÏò¶ÔÏó£¨ÉÏ£©

1 ÉùÃ÷Ò»¸öÀà
class ÈË{
³ÉÔ±ÊôÐÔ£ºÐÕÃû¡¢ÐÔ±ð¡¢ÄêÁä¡¢Éí¸ß¡¢ÌåÖØ¡¢µç»°¡¢¼Òͥסַ
³ÉÔ±·½·¨£º¿ÉÒÔ¿ª³µ£¬ »á˵ӢÓ ¿ÉÒÔʹÓõçÄÔ
}
ÊôÐÔ£º
ͨ¹ýÔÚÀඨÒåÖÐʹÓùؼü×Ö“var”À´ÉùÃ÷±äÁ¿£¬¼´´´½¨ÁËÀàµÄÊôÐÔ,ËäÈ»ÔÚÉùÃ÷³ÉÔ±ÊôÐÔµÄʱºò¿ÉÒÔ¸ø¶¨³õʼֵ£¬ µ«ÊÇÔÚÉùÃ÷ÀàµÄʱºò¸ø³ÉÔ±ÊôÐÔ³õʼֵÊÇûÓбØÒªµÄ£¬±ÈÈ ......

PHP ħÊõÒýºÅ

ħÊõÒýºÅ£¨Magic Quote£©ÊÇÒ»¸ö×Ô¶¯½«½øÈë PHP ½Å±¾µÄÊý¾Ý½øÐÐתÒåµÄ¹ý³Ì¡£×îºÃÔÚ±àÂëʱ²»Òª×ªÒå¶øÔÚÔËÐÐʱ¸ù¾ÝÐèÒª¶øתÒå
ʲôÊÇħÊõÒýºÅ
µ±´ò¿ªÊ±£¬ËùÓÐµÄ '£¨µ¥ÒýºÅ£©£¬"£¨Ë«ÒýºÅ£©£¬\£¨·´Ð±Ïߣ©ºÍ NULL ×Ö·û¶¼»á±»×Ô¶¯¼ÓÉÏÒ»¸ö·´Ð±Ïß½øÐÐתÒå¡£ÕâºÍ addslashes() ×÷ÓÃÍêÈ«Ïàͬ¡£
Ò»¹²ÓÐÈý¸öħÊõÒýºÅÖ¸Á
&nb ......

PHP PDO »ù´¡

 PHP PDO »ù´¡
http://blog.csdn.net/nailwl/archive/2009/10/27/4733655.aspx
PDOÊÇÒ»¸ö“Êý¾Ý¿â·ÃÎʳéÏó²ã”£¬×÷ÓÃÊÇͳһ¸÷ÖÖÊý¾Ý¿âµÄ·ÃÎʽӿڣ¬ÓëmysqlºÍmysqliµÄº¯Êý¿âÏà±È£¬PDOÈÿçÊý¾Ý¿âµÄʹÓøü¾ßÓÐÇ׺ÍÁ¦£»ÓëADODBºÍMDB2Ïà±È£¬PDO¸ü¸ßЧ¡£Ä¿Ç°¶øÑÔ£¬ÊµÏÖ“Êý¾Ý¿â³éÏó²ã”ÈÎÖضøµÀÔ¶£¬Ê¹ ......

PHP±éÀú¶àάÊý×麯Êý

function handleEach(&$array,$functionName)
{
foreach($array as $k=>$v)
{
if(is_array($v))
{
handleEach(&$array[$k],$functionName);
}
else
$array[$k] = $functionName($v);
return $array[$k];
}
} ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ