XPÏÂIISÅäÖÃPHP ºÍMySQL
µÚÒ»²½£º ÏÂÔغͰ²×°PHP
php°æ±¾: php-5.2.10-Win32.zip
1.½âѹphpÎļþµ½ c:\php
2.½«phpÎļþ¼ÐÏ php.ini-dist ¸ÄÃûΪ php.ini ,È»ºóÕÒµ½extension_dir = "./" ¸ÄΪ extension_dir = "c:\php\ext" (´ó¸ÅÔÚ461ÐÐ)
3.È¥µô;extension=php_mysql.dll Ç°µÄ";"×¢ÊÍ·ûºÅ (´ó¸ÅÔÚ589ÐÐ)(Èç¹ûûÓеĻ°¿ÉÒÔ¼ÓÉÏÕâÃû»°.)
4.¸´ÖÆphp.iniµ½C:\WINDOWS
ÔÙ¸´ÖÆphp5ts.dllºÍlibmysql.dllµ½WINDOWS\system32\ÖÐ
µÚ¶þ²½£º ÅäÖÃIIS
1.ÅäÖÃISAPIɸѡ
1)¿ªÊ¼--¿ØÖÆÃæ°å--¹ÜÀí¹¤¾ß----£¨Ë«»÷£©Internet ÐÅÏ¢·þÎñ--Ò»´ÎÑ¡ÔñĬÈÏÍøÕ¾
2£© ÓÒ¼üĬÈÏÍøÕ¾ÊôÐÔ---½«¿´µ½Ä¬ÈÏÊôÐÔ¶Ô»°¿ò---Ñ¡ÔñISAPIɸѡÆ÷---Ìí¼ÓÒ»¸öеÄɸѡÆ÷--- Ãû³ÆΪphp
---¿ÉÖ´ÐÐÎļþΪ£¨C:\php\php5isapi.dll£©(ÕâÀïΪPHPÎļþ·¾¶)----È·¶¨
3£©½øÈëÖ÷Ŀ¼----Ñ¡ÔñÅäÖõ¯³ö¶Ô»°¿ò--- Ñ¡ÔñÌí¼Ó¶Ô»°¿ò----- À©Õ¹ÃûΪ.php---¿ÉÖ´ÐÐÎļþ·¾¶ÎªC:\php\php5isapi.dll---È·¶¨
4£©½øÈëÎĵµ---Ñ¡ÔñÌí¼Ó¶Ô»°¿ò---ĬÈÏÎĵµÃûΪindex.php²¢ÇÒÉèΪ×î¸ß£¨ÉÏÒƵ½¶¥²¿£©---È·¶¨¾Í¿ÉÒÔÁË¡£
5£©ÖØÆôIIS£¬
ÖØÆô·½·¨£º
ÔÚÔËÐÐÀïÃæÒÀ´ÎÊäÈë
net stop w3svc
net stop iisadmin
net start w3svc
ÏÖÔÚĬÈÏÕ¾µã¿ÉÒÔÖ§³ÖPHPÁË£¬ÏòÆäÖÐÌí¼ÓÒ»¸öÄÚÈÝΪ<% echo phpinfo() >µÄtest.phpÎļþ£¬ÔÚIIS¹ÜÀíÆ÷ÖÐÓÒ¼ü²¢µãä¯ÀÀ£¬ Èç ¹û¿ÉÒÔ¿´µ½ÈçϵÄÄÚÈÝ£¬ËµÃ÷PHPÒÑÅäÖóɹ¦¡£
Ïà¹ØÎĵµ£º
basename: ·µ»Ø²»º¬Â·¾¶µÄÎļþ×Ö·û´®¡£
chgrp: ¸Ä±äÎļþËùÊôµÄȺ×é¡£
chmod: ¸Ä±äÎļþµÄÊôÐÔ¡£
chown: ¸Ä±äÎļþµÄÓµÓÐÕß¡£
clearstatcache: Çå³ýÎļþ״̬¿ìÈ¡¡£
copy: ¸´ÖÆÎļþ¡£
delete: ÎÞÓõÄÏîÄ¿¡£
dirname: È¡µÃ·¾¶ÖеÄĿ¼Ãû¡£
diskfreespace: È¡µÃĿ¼ËùÔÚµÄÊ£Óà¿ÉÓÿռ䡣
fclose: ¹Ø±ÕÒÑ´ò¿ªµÄ ......
phpÁ¬½Óaccess
$conn=new COM("ADODB.Connection");
$dsn="DRIVER={Microsoft Access Driver (*.mdb)};DBQ=".realpath("data.mdb").";Uid=Admin; Pwd=BDC2002Data;";
$conn->open($dsn);
$sql="select * from dict";
$rs=$conn->Execute($sql);
$row="0";
while(!$rs->EO ......
1.ʹÓà ip2long() ºÍ long2ip() º¯ÊýÀ´°Ñ IP µØַת»¯³ÉÕûÐÍ´æ´¢µ½Êý¾Ý¿âÀï¡£ÕâÖÖ·½·¨°Ñ´æ´¢¿Õ¼ä½µµ½Á˽ӽüËÄ·ÖÖ®Ò»£¨char(15) µÄ 15 ¸ö×Ö½Ú¶ÔÕûÐ뵀 4 ¸ö×Ö½Ú£©£¬¼ÆËãÒ»¸öÌض¨µÄµØÖ·ÊDz»ÊÇÔÚÒ»¸öÇø¶ÎÄÚÒ³¸ü¼òµ¥ÁË£¬¶øÇÒ¼Ó¿ìÁËËÑË÷ºÍÅÅÐòµÄËٶȣ¨ËäÈ»ÓÐʱ½ö½öÊÇ¿ìÁËÒ»µã£©¡£
2.ÔÚÑéÖ¤ email µØÖ·µÄʱºòʹÓà checkdnsrr() º ......
PhpµÄ½Å±¾¿éÓйصķûºÅ£º
1,XML·ç¸ñ£ºÅ£È˼«¶ÈÍƼöµÄÓ÷¨<?php …?>¡£
2,¼ò¶Ì·ç¸ñ:<?...?>×î¼òµ¥£¬×ñÑSGML(±ê׼ͨÓñê¼ÇÓïÑÔ)´¦Àí˵Ã÷µÄ·ç¸ñ¡£ÒªÏëÓÃËü£¬Ò»¶¨Òª¿ªÆôshort_open_tagÑ¡Ï»òÕßÆôÓö̱ê¼ÇµÄÑ¡Ïî±àÒëphp¡£(³õѧÕß¿´ÕÅÀÏʦÊÓƵʱ£¬¾ÍÈÝÒ×·¸Ã»ÓпªÆô¶Ì±ê¼ÇµÄ´íÎó¡£¹úÍâÅ£È˲»ÍƼö£¬µ«ÏÖÔÚ¹ú ......