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

PHPÏÔʾ³ö´íÌáʾµÄÈýÖÖ·½·¨

PHPÔÚÒ³ÃæÉÏÏÔʾ³ö´íÏûÏ¢²¢ÈÃÓû§¿´¼ûÊÇ¿ª·¢ÈËÔ±ÔõôÑùÒ²²»Ô¸ÒâÃæ¶ÔµÄ£¬µ«ÊÇË­¶¼²»ÏëÔÚһ̨ûÓÐÅäÖóÉÏÔʾ³ö´íÏûÏ¢µÄ·þÎñÆ÷ÉÏÓÃPHP¿ª·¢´úÂë¡£¿ª·¢Ê±ÏÔʾPHPµÄ´íÎóÏûÏ¢¶Ô¿ª·¢ÈËÔ±À´ËµÊǸöÃ÷ÖǵÄÑ¡Ôñ£¬Ëùν¹¤¾ßÊÇʹÈË·½±ãµÄ£¬¾ÍÊÇÈç´Ë¡£
¡¡¡¡ÏÂÃæÀ´ËµËµÏÔʾPHP´íÎóÌáʾÏûÏ¢µÄÈý¸ö·½·¨¡£
¡¡¡¡Ò»£ºphp.iniÅäÖÃ
¡¡¡¡php.iniÅäÖÃÖÐÓë´ËÏà¹ØµÄÓÐÁ½¸öÅäÖñäÁ¿¡£ÏÂÃæÊÇÕâÁ½¸ö±äÁ¿¼°ÆäĬÈÏÖµ£º
ÒÔÏÂÊÇÒýÓÃÆ¬¶Î£º
display_errors = Off
error_reporting = E_ALL & ~E_NOTICE
¡¡¡¡display_errors ±äÁ¿µÄÄ¿µÄºÜÃ÷ÏÔ —— Ëü¸æËßPHPÊÇ·ñÏÔʾ´íÎó¡£Ä¬ÈÏÖµÊÇ Off¡£ÏÖÔÚÎÒÃǵÄÄ¿µÄÊÇÏÔʾ´íÎóÌáʾ£¬ÄÇô£º
ÒÔÏÂÊÇÒýÓÃÆ¬¶Î£º
display_errors = On
¡¡¡¡E_ALL£¬Õâ¸öÉèÖûáÏÔʾ´Ó²»Á¼±àÂëʵ¼ùµ½ÎÞº¦Ìáʾµ½³ö´íµÄËùÓÐÐÅÏ¢¡£E_ALL ¶ÔÓÚ¿ª·¢¹ý³ÌÀ´ËµÓеã̫ϸ£¬ÒòΪËüÁ¬±äÁ¿Î´³õʼ»¯Ò²ÏÔʾÌáʾ£¬¶øÕâÒ»µãÕýÊÇPHP“¸ß¼¶”µÄÒ»¸öÌØÕ÷¡£ÐҺã¬error_reportingµÄĬÈÏÖµÊÇ“E_ALL & ~E_NOTICE”£¬ÕâÑù¾ÍÖ»¿´µ½´íÎóºÍ²»Á¼±àÂëÁË£¬¶Ô³ÌÐòÎÞ²»ÀûµÄÌáʾÔò²»»áÏÔʾ¡£
¡¡¡¡ÐÞ¸Äphp.iniºóÐèÒªÖØÐÂÆô¶¯Apache£¬ÕâÑù²Å¿ÉÒÔÔÚapacheÖÐÉúЧ£¬µ±È»ÄãÈç¹ûÖ»ÔÚÃüÁîÐÐϲâÊÔ³ÌÐò£¬ÊDz»ÐèÒªÕâÒ»²½µÄ¡£
¡¡¡¡¶þ£ºApacheµÄhttpd.confºÍ.htaccessÅäÖÃ
¡¡¡¡Èç¹ûÒªÔÚ.htaccess ÎļþÖеÄÖ¸ÁîÀ´ÐÞ¸Ä PHP µÄÅäÖÃÉ趨¡£ÐèÒªÓГAllowOverride Options”»ò“AllowOverride All”ȨÏ޲ſÉÒÔ¡£ Çë²Î¼û£ºAllowOverride Ö¸Áîhttp://lamp.linux.gov.cn/Apache/ApacheMenu/mod/core.html#allowoverride
¡¡¡¡AllowOverrideÖ¸ÁîÈ·¶¨ÔÊÐí´æÔÚÓÚ.htaccessÎļþÖеÄÖ¸ÁîÀàÐÍ£¬Ëü½öÔÚ²»°üº¬ÕýÔò±í´ïʽµÄÅäÖöÎÖвÅÊÇÓÐЧµÄ¡£
¡¡¡¡Èç¹û´ËÖ¸Áî±»ÉèÖÃΪNone £¬ÄÇô.htaccessÎļþ½«±»ÍêÈ«ºöÂÔ¡£ÊÂʵÉÏ£¬·þÎñÆ÷¸ù±¾²»»á¶ÁÈ¡.htaccessÎļþ¡£
¡¡¡¡µ±´ËÖ¸ÁîÉèÖÃΪ Allʱ£¬ËùÓоßÓÐ".htaccess"×÷ÓÃÓòµÄÖ¸Áî¶¼ÔÊÐí³öÏÖÔÚ.htaccessÎļþÖС£
¡¡¡¡ÀýÈçÒÔÏÂÖ¸ÁîÖ»ÔÊÐíÔÚ.htaccessÖÐʹÓÃAuthConfigºÍIndexes×éµÄÖ¸Á
ÒÔÏÂÊÇÒýÓÃÆ¬¶Î£º
AllowOverride AuthConfig Indexes
¡¡¡¡.htaccessÀïµÄÉèÖúÍhttpd.confÊÇÒ»ÑùµÄ¡£
¡¡¡¡ÒªÔÚ×öÔÚhttpd.confʵÏÖÕâÒ»¹¦ÄÜ£¬ÐèÒª°ÑÏÂÁи÷ÐÐÌí¼Óµ½ httpd.conf£¬ÒÔ¸²¸Çphp.iniÎļþ×ö³öµÄÅäÖãº
ÒÔÏÂÊÇÒýÓÃÆ¬¶Î£º
php_flag  display_errors        on
php_value error_reporting&n


Ïà¹ØÎĵµ£º

phpÁ¬½Ómysql

header("Content-Type:text/html;charset=utf8");   ·Åµ½PHP¿ªÍ·´¦
$link=mysql_connect("localhost","root","110110");//Á´½Ó
mysql_select_db("blog",$link);//Ñ¡ÔñÊý¾Ý¿â
mysql_query("SET character_set_results=gbk", $link);//×Ö·û±àÂë ......

ÕÐÆ¸jsp\phpÍøÕ¾¿ª·¢³ÌÐòÔ±

ÉϺ£ÔóÎäÍøÂçÓÐÏÞ¹«Ë¾
ÕÐÆ¸£ºÕÐÆ¸jsp\phpÍøÕ¾¿ª·¢³ÌÐòÔ±
ÒªÇóÓÐÈýÄêÒÔÉÏ¿ª·¢¾­Ñé
¶ÔTomcat+Apache¼¯Èº¼¼ÊõÓÐÊìϤµÄ¾­Ñé.¶ÔËÑË÷ÒýÇæ¼¼Êõ(Lucene)±È½ÏÁ˽⡣
-ÊìÁ·Ê¹ÓÃUML½¨Ä£¹¤¾ß¡¢°æ±¾¿ØÖƹ¤¾ß; ÊìÁ·Ê¹ÓÃEclipseµÈIDE¿ª·¢¹¤¾ß;
-¾«Í¨JAVA,php,ÉîÈëÀí½âOOP˼Ïë,ÊìϤÉè¼ÆÄ£Ê½¡£
-ÊìÁ·ÔËÓÃJ2EE¼¼Êõ¡¢WEB·þÎñÆ÷ºÍ¹ØÏµÐ ......

BDB¹Ù·½¸øPHPÌṩµÄ½Ó¿ÚµÄ³ÌÐòÔ±ÕæÊDz»¸ºÔð

¸ÕдÍêÇ°ÃæµÄÈÕÖ¾£¬ÓÖ·¢ÏÖÒ»¸öBug:
¸ù¾ÝOracle¹Ù·½ÌṩµÄ˵Ã÷£º
http://www.oracle.com/technology/documentation/berkeley-db/db/programmer_reference/ext_php.html
class Db4µÄÉùÃ÷ÈçÏ£º
class Db4 {
function Db4($dbenv = null) {} // create a new Db4 object using
......

ÈçºÎ½«php»ñµÃµÄʱ¼äת»»Îª±±¾©Ê±¼ä

´Óphp5.10¿ªÊ¼£¬phpÖмÓÈëÁËÊ±ÇøµÄÉèÖã¬ÔÚphpÖÐÏÔʾµÄʱ¼ä¶¼ÊǸñÁÖÍþÖαê׼ʱ¼ä£¬Õâ¾ÍÔì³ÉÁËÎÒÃÇÖйúµÄÓû§»á²î°Ë¸öСʱµÄÎÊÌ⣡
Ïà¹ØÉèÖÃÊÇÐÞ¸Äphp.iniÖÐµÄ date.timezone ²ÎÊý£º
[Date]
; Defines the default timezone used by the date functions
;date.timezone =
ĬÈÏÊǹرյģ¬Ö»Ðè°Ñ×¢ÊÍÈ¥µô£¬¸ÄΪ¼´¿É
[Dat ......

xmlÎĵµÀﺬÓÐÌØÊâ×Ö·ûʱµÄ´¦Àí·½·¨(php)

¡¡¡¡±¾ÎÄÊ×·¢´úÂëÌìÏÂ,×ªÔØÇë×¢Ã÷À´Ô´´úÂëÌìÏ£¬Ð»Ð»¡£
¡¡¡¡½ñÌìÉϰàʱÓöµ½Ò»¸öÎÊÌ⣬ÓÎÏ·¹Ù·´Ó¦Ò»¸öÓû§³ä²»ÁËÖµ¡£³ä²»ÁËÖµÒ»°ãΪÓû§½ÇÉ«²»ÕýÈ·£¬ÎÒ×Ðϸ¼ì²é·¢ÏÖ¸ÃÓû§½ÇÉ«ÓеãÒì³££¬ÒòΪ¶Ô·½·µ»Ø½ÇÉ«ÊÇxml£¬ÎÒÌùÉÏÀ´¸ø´ó¼Ò¿´Ò»Ï£º
<Result value="true" message="Success!">   <It ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ