WinXP IIS 5.1 PHP 5.3 VC9.0 ÅäÖÃÏê½â
IISÉÏ°²×°PHP5.3µÄÍêÕû½Ì³Ì·½·¨(¼°5.3.0ÒÔºó°æ±¾µÄ·½·¨)
ÓÉÓÚPHP5.3µÄÈ«ÐÂÌØЧ¼°¸Ä½ø£¬ÔÓеÄisapi·½Ê½½âÎöPHP
½Å±¾ÒѾ²»±»Ö§³Ö£¬PHP´Ó5.3
.0ÒÔºóµÄ°æ±¾¿ªÊ¼Ê¹ÓÃ΢ÈíµÄfastcgiģʽ£¬ÕâÊÇÒ»¸ö¸üÏȽøµÄ·½Ê½£¬ÔËÐÐËٶȸü¿ì£¬¸üÎȶ¨£¡
а汾
µÄPHP5.3ͨ¹ýÒÔÍùÀÏ·½·¨ÒѾ²»ÄÜÔÚIISÉÏ°²×°ÁË£¬ÏÖÔÚ¸ø³öÔÚIISÉÏ°²×°PHP5.3ÒÔºó°æ±¾µÄ½Ì³Ì
Ê×ÏÈÏÂÔØ
²¢°²×°IIS
FastCGI£¬ÏÂÔصØÖ·http://www.iis.net/1521/ItemPermalink.ashx
ÏÂÔØIISϵÄPHP£¬ÏÂÔصØÖ·http://windows.php.net/download/
£¬£¨×¢ÒâIISÏÂҪѡÔñVC9µÄ°æ±¾£©½âѹµ½ËùÐèĿ¼£¬¸ÃĿ¼ÐèÒª¸øÓèuser¶ÁÈ¡ÔËÐÐȨÏÞ£¬ÕÒµ½PHP°²×°Ä¿Â¼ÏµÄphp.ini-development²¢¸ÄÃûΪphp.iniÎļþ£¬ÕÒµ½ÏÂÃæ
[Date]
;
Defines the default timezone used by the date functions
; http://php.net/date.timezone
; date.timezone
=
¸ü¸ÄΪ
[Date]
; Defines the default timezone used by the date
functions
; http://php.net/date.timezone
date.timezone =
Asia/Shanghai
Èç¹û²»¸ÄÒÔÉϵÄdate.timezone¿ÉÄÜ´ò¿ªÍøÒ³»áÌáʾ500´íÎó
ÕÒµ½
; On
windows:
; extension_dir = "ext"
¸ÄΪ
; On windows:
extension_dir =
"E:\local\php5.3\ext"
Ŀ¼¸ù¾Ý×Ô¼ºÇé¿ö¶¨
ÖÁÓÚphp.iniÀïÃæµÄextension¿ªÆô·½Ê½£¬¸ù¾Ý×Ô¼ºËùÐ裬±ÈÈçÎÒµÄÊÇ
;extension=php_bz2.dll
;extension=php_curl.dll
;extension=php_dba.dll
;extension=php_exif.dll
;extension=php_fileinfo.dll
extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_gmp.dll
;extension=php_intl.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_ldap.dll
extension=php_mbstring.dll
;extension=php_ming.dll
;extension=php_mssql.dll
extension=php_mysql.dll
extension=php_mysqli.dll
;extension=php_oci8.dll
; Use with Oracle 10gR2 Instant Client
;extension=php_oci8_11g.dll ; Use
with Oracle 11g Instant
Client
;extension=php_openssl.dll
;extension=php_pdo_firebird.dll
;extension=php_pdo_mssql.dll
;extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
;extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll
;extension=php_pdo_sqlite.dll
;extens
Ïà¹ØÎĵµ£º
#apt-get install apache2
//°²×°apahce2
#apt-get install php5
//°²×°php5
#apt-get install mysql-server
//°²×°mysql·þÎñ¶Ë
#apt-get install mysql-myclient
//°²×°mysqlµÄ¿Í»§¶Ë
#apt-get install php-mysql
//°²×°php-mysqlµÄÁ¬½á
apache+php+mysql »·¾³ÒѾ´î½¨ºÃÁË
½«ÒÔϵķþÎñÖØÆôÒ»ÏÂ
#/et ......
±¾½Ì³ÌÀ´×ÔPHP½Ì³ÌÍø(www.phpjc.cn)
PHP ÖеıäÁ¿
±äÁ¿ÓÃÓÚ´æ´¢Öµ£¬±ÈÈçÊý×Ö¡¢Îı¾×Ö·û´®»òÊý×é¡£
Ò»µ©ÉèÖÃÁËij¸ö±äÁ¿£¬ÎÒÃǾͿÉÒÔÔڽű¾ÖÐÖظ´µØʹÓÃËü¡£
PHP ÖеÄËùÓбäÁ¿¶¼ÊÇÒÔ $ ·ûºÅ¿ªÊ¼µÄ£¬±äÁ¿ÃûÊÇÇø·Ö´óСдµÄ¡£
ÔÚ PHP ÖÐÉèÖñäÁ¿µÄÕýÈ··½·¨ÊÇ£º
$var_name = value;
PHP µÄÈëÃÅÕßÍùÍù»áÍü¼ÇÔÚ±äÁ¿µÄÇ°Ãæµ ......
<?php
$mysql_server_name = "localhost";
$mysql_username = "root";
$mysql_password = "root";
......
PHPÎļþ°üº¬Â©¶´ÔÀí·ÖÎöºÍÀûÓ÷½·¨
±¾ÎÄÕ¼òµ¥ÕªÒª£ºÒ»¡¢Éæ¼°µ½µÄΣÏÕº¯Êý¡²include(),require()ºÍinclude_once(),require_once()¡³ include()&&require()Óï¾ä:°üÀ¨²¢ÔËÐÐÖ¸¶¨Îļþ¡£ÕâÁ½Öֽṹ³ýÁËÔÚÈçºÎ´¦ ......