php¿ª·¢»·¾³ÉèÖÃ
1£º apache·þÎñÆ÷°²×°.apache_2.0.59-win32-x86-no_ssl.msi¡£
ÐÞ¸Äconf\httpd.confÖеÄÎļþ£¬ÐÞ¸ÄλÖÃΪ£º
DocumentRoot "c:/webpage" ÉèÖÃÐéÄâĿ¼ c:/webpage.
DirectoryIndex index.html index.html.var index.php
==ʹapache·þÎñÆ÷ʶ±ðphpµÄÀ©Õ¹Ãû¡£
ÔÚ<Directory "c:/program files/Apache Group/Apache2/cgi-bin">
¡£¡£¡£
</Directory>ÏÂÃæÌí¼Ó
AddType application/x-httpd-php .php .phtml .php3 .php4
AddType application/x-httpd-php-source .phps
==Ö¸¶¨phpÄ£¿é
#LoadModule ssl_module modules/mod_ssl.so
ÔÚÏÂÃæÌí¼ÓÒ»ÐÐ
LoadModule php5_module c:\php5\php5apache2.dllʹËüÖ¸Ïòphp5Ŀ¼ÏµÄphp5apache2.dllÎļþ¡£
2£ºÆäËüÄÚÈݼû¸½¼þ¡£
Ïà¹ØÎĵµ£º
<?php
$a = 1;
function b(&$c)
{
$c++;
return $c;
}
$d=b($a); // d = 2; a = 2;
$d++; // d = 2;
echo($a); // ÏÔʾ2
?>
ÒýÓ÷µ»Ø:
<?php
$a = 1;
function &b(&$c)
{
$c++;
return $c;
}
$d=b($a); // ×¢ÒâÕâÀï dÓëb·µ»ØµÄÖµ(È·ÇÐÀ´Ëµ, ÕâÀï·µ»ØµÄ² ......
¶Ô CodeIgniter µÄ½éÉÜ
´ó¶àÊýPHPer¶¼Ïëд³öÔËÐÐ״̬Á¼ºÃµÄÓ¦ÓóÌÐò£¬¶øÇÒÏ£Íû¾¡¿ÉÄÜ×öµÃ¼òµ¥ÇÒ²»·ÑÊ¡£ÕâÆªÎÄÕÂÊÇÓÐ¹Ø CodeIgniterµÄ£¨ÒÔºó¼ò³ÆCI£©,CIÊÇÒ»¸ö´ï³ÉÉÏÃæÄ¿µÄµÄËùν¿ò¼Ü¡£
Èç¹ûÄãÖ»ÊÇÒª´ï³ÉÒ»¸ö×îÖյĽá¹û£¬¶ø°ÑÖмäËùÓеıàÂëϸ½ÚºÍ¸´ÔÓͳͳ¶ª¸øÒ»¸ö¿ò¼Ü£¬CIÊÇÄã×îºÃµÄÅóÓÑ¡£
CIÓкܶàÓŵ㣺Ãâ·Ñ, ÇáÁ¿¼¶, ......
<?
//------------------------
// PHPÄÚÖÃ×Ö·û´®º¯ÊýʵÏÖ
//------------------------
//×Ö·û´®³¤¶È
function strlen ($str)   ......
function file_list($path) {
$handle = opendir($path);
if ($handle) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
if (is_dir($path."/".$file)) {
echo "<br /><br /><b> ......
//×îºÃÏȽ¨Á¢Ò»¸ö upload/publicÕâ¸öÎļþ¼Ð£¬ÒÔÏÂÊÇupload.php
<?php
/**
*********************************************
²ÎÊýÉ趨
*********************************************
**/
//×î´óÉÏ´«Îļþ´óС
$MAX_SIZE = 20000000;
//ÉèÖÃMineÀàÐÍ
$FILE_MIMES = array
('image/jpeg','image/jpg','image/gif ......