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

phpÅäÖÃÎļþÏê½â

[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini   ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
; 1. SAPI module specific location.
; 2. The PHPRC environment variable. (As of PHP 5.2.0)
; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0)
; 4. Current working directory (except CLI)
; 5. The web server's directory (for SAPI modules), or directory of PHP
; (otherwise in Windows)
; 6. The directory from the --with-config-file-path compile time option, or the
; Windows directory (C:\windows or C:\winnt)
; See the PHP docs for more specific information.
; http://php.net/configuration.file
; The syntax of the file is extremely simple.  Whitespace and Lines
; beginning with a semicolon are silently ignored (as you probably guessed).
; Section headers (e.g. [Foo]) are also silently ignored, even though
; they might mean something in the future.
; Directives following the section heading [PATH=/www/mysite] only
; apply to PHP files in the /www/mysite directory.  Directives
; following the section heading [HOST=www.example.com] only apply to
; PHP files served from www.example.com.  Directives set in these
; special sections cannot be overridden by user-defined INI files or
; at runtime. Currently, [PATH=] and [HOST=] sections only work under
; CGI/FastCGI.
; http://php.net/ini.sections
; Directives are specified using the following syntax:
; directive = value
; Directive names are *case sensitive* - foo=bar is different from FOO=bar.
; Directives are variables used to configure PHP or PHP extensions.
; There is no name validation.  If PHP can't find an expected
; directive because it is not set or is mistyped, a default value will be used.
; The value can be a string, a


Ïà¹ØÎĵµ£º

phpÖÐsqlÓï¾äµÄÒýºÅÏê½â

Õâ¾ÍÒª´ÓË«ÒýºÅºÍµ¥ÒýºÅµÄ×÷Óý²Æð£º
Ë«ÒýºÅÀïÃæµÄ×ֶλᾭ¹ý±àÒëÆ÷½âÊÍÈ»ºóÔÙµ±×÷HTML´úÂëÊä³ö£¬µ«Êǵ¥ÒýºÅÀïÃæµÄ²»ÐèÒª½âÊÍ£¬Ö±½ÓÊä³ö¡£ÀýÈ磺
$abc='I love u';
echo $abc          //½á¹ûÊÇ:I love u
echo '$abc'        //½á¹ûÊ ......

PHPÊÇ×îºÃµÄÍøÕ¾¿ª·¢ÓïÑÔ

×÷Ϊһ¸öÈ«ÐµĻ¥ÁªÍøÏîÄ¿£¬ÓÐʱºò»áÃæÁÙÒ»¸öÑ¡ÔñʲôÑùµÄ¿ª·¢ÓïÑÔµÄÎÊÌâ¡£
ÎÒ˵µÄÕâ¸öÓÐʱºò£¬ÆäʵÊÇÖ¸ÏÖÓеÄÍŶÓÖУ¬Ã»Óм¼Êõ¿ª·¢µÄ³ÉÔ±µÄÇé¿ö¡£Èç¹ûÒѾ­ÓÐÁËÒ»¸ö»òÕß¶à¸ö¼¼Êõ¿ª·¢ÈËÔ±£¬µ±È»ÊÇÑ¡ÔñÏÖÓгÉÔ±×îÊìϤºÍ×îÉó¤µÄÓïÑÔÁË¡£
ÄÇô¶ÔÓÚÒ»¸ö»¹Ã»Óм¼Êõ³ÉÔ±µÄÍŶӣ¬Ó¦¸ÃÑ¡ÔñʲôÑùµÄ¿ª·¢ÓïÑÔÄØ£¿»Ø´ðÕâ¸öÎÊÌ⣬Ê×Ï ......

phpÊä³öcsvºÍexcelÁ½ÖÖ·½·¨

1£¬¶¨Òåheader()Í·²¿Êä³ö¸ñʽ
   
   header("Content-type:application/vnd.ms-excel");
   header("Content-Disposition:finlename=php.xls");
    vnd.ms-excel -----¶¨ÒåÊä³öÎļþ¸ñ
    php.xls  ---------¶¨ÒåÊä³öµÄÎļþÃû
2£¬Êä³ö±à ......

PHP²»ÊʺÏMVC¿ò¼Ü

×î½ü¹¤×÷·¶³ëÓÉÔ­À´µÄ.netÇл»µ½ÁËphp£¬×ÛºÏÕâ¶Îʱ¼äµÄÈÏÖª£¬¾õµÃÔÚphpÕâ¸öÌåϵÖÐMVCģʽδ±ØÊÇÒ»¸öºÃ¶«Î÷¡£
´ÓijÖÖÀíÂÛÉÏÀ´Ëµ,MVCȷʵ¿ÉÒÔÈÃϵͳ¸üÇåÎúºÍ¸üÃ÷ÁË¡£
µ«ÊÇÒ»¸öºÜÖØÒªµÄÒ»µãÒ²´æÔÚÁË£¬MVCÈÃÒ³Ãæ¸ü¶àÁËÆðÀ´£¡£¡£¡ÕâµãºÜÖØÒª
PHPÔÚûÓÐÒ»¸ö±È½ÏºÃµÄIDEµÄÖ§³ÖÏ£¬Ò³ÃæÌø×ªºÍÇл»ÊµÔÚÊǷdz£²»·½±ã¡£
ûÓÐÒ»¸öºÃ ......

³õѧPHP½Ó¿Ú

¼Ì³ÐÌØÐÔ¼ò»¯Á˶ÔÏó£¬ÀàµÄ´´½¨£¬Ôö¼ÓÁË´úÂëµÄÖØÓÃÐÔ¡£µ«ÊÇPHPÖ®Ö§³Öµ¥¼Ì³Ð¡£Èç¹ûÏëʵÏÖ¶à¼Ì³ÐµÄ»°¾ÍÒªÓõ½PHPµÄ½è¿Ú¡£PHP¿ÉÊÇʵÏÖ¶à¸ö½Ó¿Ú¡£
²»ÒªÓÃpublicÒÔÍâµÄ¹Ø¼ü×ÖÀ´ÐÞÊνӿÚÖеÄÀà³ÉÔ±¡£¶ÔÓÚ·½·¨£¬²»Ð´¹Ø¼ü×ÖÒ²¿ÉÒÔ¡£ÕâÊÇÒ»¸ö½è¿ÚÀà×ÔÉíµÄÌìÐÔ¾ö¶¨µÄ¡£ÄÇôÎÒÏëËûÊÇÎªÊ²Ã´ÄØ£¿
¶ÔÓÚ½Ó¿ÚÀ´Ëµ£¬Ëü²»ÄÜÓÃprotected,ºÍpr ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ