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£ºÆäËüÄÚÈݼû¸½¼þ¡£
Ïà¹ØÎĵµ£º
·ÖÎöÍøÕ¾½á¹¹
¼ÈÈ»ÎÒÃÇÒѾ°²×° CI £¬ÎÒÃÇ¿ªÊ¼Á˽âËüÈçºÎ¹¤×÷¡£
¶ÁÕßÒѾ֪µÀ CI ʵÏÖÁËMVCʽÑù¡£ ͨ¹ý¶ÔĿ¼ºÍÎļþµÄÄÚÈݽøÐзÖÀà, ¶ø²»ÊÇÈôúÂë´ó¿é´ó¿éµØ¾À¼¯ÔÚÒ»Æð¡£
ÕâÒ»Õ£¬ÎÒÃǽ«»á¶Ô MVC ÀíÂÛ×ö¸ö¼ò¶ÌµÄ½éÉÜ, È»ºóÔÙ½éÉÜ CI µÄMVCʵÏÖ·½Ê½¡£ÌرðµØ£¬ÒªÁ˽âÄÇЩĿ¼ºÍÎļþÈçºÎ»¥Ïཻ»»ÐÅÏ¢£¿ÍøÕ¾½á¹¹ÊÇÔõÑùµÄ£¿ÒÔ ......
<?PHP
/**
* HTTP Protocol defined status codes
* @param int $num
*/
function https($num) {
$http = array (
100 => "HTTP/1.1 100 Continue",
101 => "HTTP/1.1 101 Switching Protocols",
200 => "HTTP/1.1 200 OK",
201 => "HTTP/1.1 201 Created",
202 => "HTTP/1.1 202 ......
<!--<?php
<!--
EOT;
if($yy_en_lang==1){
echo <<<EOT
-->
<a href="$index_e_url">English</a>
<!--
EOT;
}
echo <<<EOT
-->
?>
ÕâÊÇÒ»¶ÎSmartyÄ£°å´úÂ룬¿ÉÊÇÎÒ¿´²»¶®Õâ¸ö¹æÔòÇë¸ßÊÖÖ¸µãһϰ¡£¡£¡Ð»Ð»!
»òÕß ......
mb_convert_encodingÕâ¸öº¯ÊýÊÇÓÃÀ´×ª»»±àÂëµÄ¡£ÔÀ´Ò»Ö±¶Ô³ÌÐò±àÂëÕâÒ»¸ÅÄî²»Àí½â£¬²»¹ýÏÖÔÚºÃÏñÓе㿪ÇÏÁË¡£
²»¹ýÓ¢ÎÄÒ»°ã²»»á´æÔÚ±àÂëÎÊÌ⣬ֻÓÐÖÐÎÄÊý¾Ý²Å»áÓÐÕâ¸öÎÊÌâ¡£±ÈÈçÄãÓÃZend Studio»òEditplusд³ÌÐòʱ£¬ÓõÄÊÇgbk±àÂ룬Èç¹ûÊý¾ÝÐèÒªÈëÊý¾Ý¿â£¬¶øÊý¾Ý¿âµÄ±àÂëΪutf8ʱ£¬Õâʱ¾ÍÒª°ÑÊý¾Ý½øÐбàÂëת»»£¬²»È»½øµ½Ê ......
ÔÚlinuxÏÂͨ¹ýsvn¸üÐÂÁËÒ»¸öphpÎļþ£¬Ä¿µÄÊÇÏëͨ¹ýÖ´ÐÐÕâ¸öÎļþÀ´¶ÁÊý¾Ý²åÈëµ½Êý¾Ý¿â¡£ÔÚÆäÖеļ¸Ì¨Ö´ÐÐûÓÐÎÊÌ⣬ÆäÖÐһ̨¾Í·¢ÏÖÁËCould not open input fileÕâ¸ö´íÎ󣬺óÀ´²éÕÒ×ÊÁϲŷ¢ÏÖÔÀ´ÊÇÎļþ¸ñʽµÄÎÊÌ⣬³ö´íʱÎļþ¸ñʽÊÇdos£¬¿ÉÒÔÔÚviÖÐÓÃ:set ffÀ´²é¿´£¬Èç¹ûÊÇdos¸ñʽ£¬ÄÇôÔòÓÃ:set ff=unixÀ´ÉèÖÃеĸñʽ£¬ÕâÑ ......