phpÖÐÈçºÎ¹Ø±Õnotice¼¶µÄ´íÎóÌáʾ
phpÖÐÈçºÎ¹Ø±Õnotice¼¶µÄ´íÎóÌáʾ
2008-09-04 15:39
1.ÔÚphp.iniÎļþÖиĶ¯error_reporting
¸ÄΪ£º
error_reporting = E_ALL & ~E_NOTICE
Èç¹ûÄã²»ÄܲÙ×÷php.iniÎļþ£¬Äã¿ÉÒÔÓÃÏÂÃæµÄ·½·¨À´ÊµÏÖ
2.ÔÚÄãÏë½ûÖ¹notice´íÎóÌáʾµÄÒ³ÃæÖмÓÈëÏÂÃæµÄ´úÂë
/* Report all errors except E_NOTICE */
error_reporting(E_ALL ^ E_NOTICE);
Ïà¹ØÎĵµ£º
¼¯³É»·¾³:WAMP...(W-windows,ÀïÃæÓÐApache·þÎñÆ÷¡¢Mysql¡¢PhpºÍMysql¿ÉÊÓ»¯¹¤¾ßSQLite)
Ps:°²×°¹ý³Ì»áÓÐÌáʾ£¬ÊÇ·ñ×ÔÆô¶¯£¬Ä¬ÈÏ¿ª·¢Ä¿Â¼¡¢Ä¬ÈÏä¯ÀÀÆ÷£¬°²×°Íê³Éºó»áÔÚÓÒϽÇÓиöС±íÅÌ£¬ÒòΪĬÈÏ°²×°Íê³ÉºóÊÇÓ¢ÎÄ°æµÄ£¬ÔÚС±íÅÌÉϵãÓÒ¼ü-->language-->Ñ¡ÔñÖÐÎľÍÐÐ)
¿ª·¢¹¤¾ß:easyeclipse php...»¹²»´íµÄÒ»¸ö¿ª·¢¹¤ ......
phpµ÷ÓÃoracleÐд洢¹ý³Ì############################################################
PHP³ÌÐò·ÃÎÊÊý¾Ý¿â£¬ÍêÈ«¿ÉÒÔʹÓô洢¹ý³Ì£¬ÓÐÈËÈÏΪʹÓô洢¹ý³Ì±ãÓÚά»¤
²»¹ýÈÊÕß¼ûÈÊ£¬ÖÇÕß¼ûÖÇ¡£
ÔÚÕâ¸öÎÊÌâÉÏ£¬Å¼ÈÏΪʹÓô洢¹ý³ÌÒâζ×űØÐëÒªDBAºÍ¿ª·¢ÈËÔ±¸ü½ôÃÜÅäºÏ,Èç¹ûÆäÖÐÒ»·½¸ü±ä£¬ÔòÏÔÈ»ÄÑÒÔά»¤¡£
µ«ÊÇʹÓô洢 ......
±ê×¼´úÂëÈçÏÂ:
<?php
...
?>
¶Ì±êǩģʽ(´ËģʽÐèÒªÐÞ¸ÄPHPÅäÖã¬ÈÃPHPÖ§³Ö¶Ì±êǩģʽ)£º
<?
...
?>
×¢ÊÍ£º
/* ...*/
//
#
ÆäËü£º
ÔÚphpÖÐÓÃ";"À´·Ö¸ôÓï¾ä¡£
Àý¾ä£º
<?php
echo "Hello World!"
?>
......
ÔÚPHP³ÌÐòÉè¼ÆÖУ¬Ëæ»úÊýµÄÉú³ÉÓÈΪÖØÒª¡£ÎÒÃÇÐèÒªÓÃËæ»úÊýÔÚÎÒÃǵÄÒ³ÃæÖÐչʾËæ»ú¼Ç¼£¨±ÈÈçͼƬ¡¢Óû§¼Ç¼¡¢ÎÄÕÂIDµÈ£©¡£ÎÒÃÇ»¹¿ÉÒÔʹÓÃËæ»úÊýÉè¼ÆÈκÎÎÒÃÇÏëÏóµÄ³ÌÐò½á¹¹¡£
Ê×ÏÈÀ´ÈÏʶһÏÂPHPÌṩµÄËæ»úÊýº¯Êýrand()¡£PHPµÄrand()º¯Êý½«·µ»ØËæ»úÕûÊý£¬¾ßÌåʹÓ÷½·¨ÈçÏÂ
rand(min,max)
¿ÉÑ¡²ÎÊýminºÍmax¿ÉÒÔʹrand() · ......
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µÄÎÊÌ⣬ÓеÄ˵ÊÇ ......