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

PHPÁ¬½ÓSQL Server

ʹÓùýSQL ServerµÄÈËÓ¦¸Ã¶¼Çå³þ£¬SQL Server³£ÓõÄÓÐÁ½ÖÖÈÏÖ¤·½Ê½£¬Ò»ÖÖÊDZ¾µØϵͳÕË»§ÈÏÖ¤£¨Windows Authentication £©£¬Ò»ÖÖÊÇʹÓÃÓû§ÃûºÍÃÜÂ루SQL Server Authentication £©£¬µÚ¶þÖÖÈÏÖ¤·½Ê½±ØÐëÆôÓÃSQL ServerµÄ»ìºÏģʽ¡£
¡¡¡¡1.Windows AuthenticationÁ¬½Ó²¿·Ö´úÂë¶Î£º
<?php
$serverName = "(local)";
$connectionInfo = array("Database"=>"TestingInfo","ConnectionPooling"=>false);
$conn = sqlsrv_connect( $serverName,$connectionInfo);
if( $conn == false)
{
    echo "Á¬½Óʧ°Ü£¡";
   die( print_r( sqlsrv_errors(), true));
}
?>
¡¡¡¡2.SQL Server AuthenticationÁ¬½Ó²¿·Ö´úÂë¶Î£º
<?php
$serverName = "(local)";
$uid = "sa";
$pwd = "******";
$connectionInfo =  array("UID"=>$uid,"PWD"=>$pwd,"Database"=>"TestingInfo");
$conn = sqlsrv_connect( $serverName,$connectionInfo);
if( $conn == false)
{
    echo "Á¬½Óʧ°Ü£¡";
   die( print_r( sqlsrv_errors(), true));
}
?>
¡¡¡¡²Î¿¼¹Ù·½ÌṩµÄÓ¢ÎÄÔ­Îĵµ£¬Õë¶Ô²ÎÊý$connectionInfo×öÒ»¸ö¼òµ¥ËµÃ÷£¬ÒòΪ$connectionInfoÊÇÒ»¸öHash±í½á¹¹£¬Ï±߲ÎÊý¸ñʽΪ£º
Key[DataType]£º
Description(Default Value)£º¼ü[Êý¾ÝÀàÐÍ]£ºÃèÊö(ĬÈÏÖµ)
¡¾1¡¿APP[StringÀàÐÍ]£º
ʹÓõÄÓ¦ÓóÌÐòÃû³Æ¡¾*£ºÎÒ×Ô¼º²»Ì«¶®µÃÕâ¸öµØ·½µÄÒâÒ壬²»ºÃÒâ˼¡¿(ûÓÐĬÈÏÖµ)
¡¾2¡¿ConnectionPooling[1»òtrueΪ´ò¿ªÁ¬½Ó³Ø£¬0»òfalseΪ¹Ø±ÕÁ¬½Ó³Ø]£º
ÓÃÀ´ÉèÖÃÊÇ·ñ´ò¿ªSQL ServerµÄÁ¬½Ó³Ø¹¦ÄÜ(ĬÈÏֵΪtrue(1))
¡¾3¡¿Database[StringÀàÐÍ]£º
Á¬½ÓµÄÊý¾Ý¿âµÄÃû³Æ£¬ËùÓÐÁ¬½ÓÌṩµÄÊý¾Ý¿âÃû³ÆÀàËÆASP.NETÀïÃæweb.configµÄÁ¬½Ó×Ö·û´®ÀïÃæµÄÊý¾Ý¿âʵÀýÃû£¬Èç¹ûÉèÖÃÁËDatabaseµÄÁ¬½ÓÊôÐÔ£¬Çý¶¯»áĬÈÏʹÓÃSQL ServerÖ§³ÖµÄTransact-SQL½Å±¾À´²Ù×÷ËùÓÐÌṩµÄÊý¾Ý¿âʵÀý£¬°üÀ¨Ìí¼Ó¡¢É¾³ý¡¢²éѯ¡¢Ð޸ĵȸ÷ÖÖ²Ù×÷(ĬÈÏΪµÇ½µÄ²Ù×÷ϵͳÀïÃæµÄÊý¾Ý¿â£¬ÎÒûÓвâÊÔ¹ý£¬Ó¦¸ÃÊÇÖ±½ÓÔËÐгÌÐòµÄ(local))
¡¾4¡¿Encrypt[1»òtrueΪִÐмÓÃÜ£¬0»òfalseΪ²»Ö´ÐмÓÃÜ]£º
ÉèÖÃÊÇ·ñ¶Ô´«Èë·þÎñÆ÷µÄSQL½Å±¾Ö´ÐмÓÃܲÙ×÷£¬µ±È»Èç¹ûʹÓüÓÃܲÙ×÷»á¶ÔϵͳÐÔÄÜ´æÔÚÒ»¶¨Ó°Ï죬²»¹ýÓ°Ïì²»Ã÷ÏÔ(ĬÈÏΪfalse(0))
¡¾5¡¿Failover_Partner[StringÀàÐÍ]£º
Ìṩһ¸ö·þÎñÆ÷¾µÏñ£¬´ËÊôÐÔÓ¦¸ÃÊÇÓÃÓÚÖ÷·þÎñÆ÷DownµôµÄÇé¿ö


Ïà¹ØÎĵµ£º

PHP³ÌÐòºÍMySqlÊý¾ÝÂÒÂëÎÊÌâÔ­Òò¼°½â¾ö

PHP³ÌÐòºÍMySqlÊý¾ÝÂÒÂëÎÊÌâÔ­Òò¼°½â¾ö
ÂÒÂëÎÊÌâ¼òµ¥Ëµ¾ÍÊÇÊý¾Ý¿âдÈë¶ÁÈ¡£¬ÍøÒ³Îļþ£¬ÍøÒ³ÏÔʾʱ¼¸¸ö»·½ÚµÄ±àÂë²»Ò»ÖÂÔì³ÉµÄ¡£
ÂÒÂëÎÊÌâ
дÈëʱ£ºÒ³ÃæÌáȡдÈëÊý¾Ý±àÂëºÍдÈëÊý¾Ý¿âʱ±àÂë²»Ò»ÖÂ
¶Áȡʱ£º¶ÁÈ¡ºóËùÓñàÂëÓëÊý¾Ý¿âдÈëʱ²»Ò»ÖÂ
ÏÔʾʱ£º±àÂëÓëÊý¾Ý¿â¶ÁÈ¡ºóµÄÊý¾Ý²»Ò»ÖÂ
ºÜÏÔȻֻÓÐÈýÕ߶¼Í³Ò»²ÅÐУ ......

PHPÖÐÎÄÂÒÂëµÄÈý¸öÔ­Òò¼°½â¾ö·½·¨


ÎÒÃÇÔÚ×öPHPÏîÄ¿µÄʱºò£¬¾­³£»áÓöµ½ÖÐÎÄÂÒÂëµÄÎÊÌ⣬ÓÐʱºò±àÂëÎÊÌ⻹µ¼ÖÂMYSQLµÄ±¨´í¡£ÖÐÎÄÂÒÂë×ܹ²ÓÐÈý¸öÔ­Òò
1£ºAPACHE·þÎñÆ÷ÉèÖõ¼ÖÂÂÒÂë
2£ºPHP£¬»òÕßHTMLÒ³Ãæ±àÂëµ¼ÖÂÖÐÎÄÂÒÂë
3£ºMYSQLÊý¾Ý¿âµÄ±íÒÔ¼°×ֶαàÂëµ¼ÖÂÖÐÎÄÂÒÂë
ÎÒÃÇ·Ö±ð´ÓÕâÈý¸ö²¿·ÖÀ´Ì½¾¿PHP³ÌÐòÉè¼ÆÖеıàÂëÎÊÌâ
ÔÚÕâ֮ǰÎÒÃÇÒªÁ˽âһЩ»ù±¾ÀíÂÛ ......

php ajax ±í¸ñÅÅÐò£¬µ÷ÕûÁÐ¿í£¬ÐÞ¸ÄÄÚÈÝ


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" media="all" href="css/style.css" />
<meta http-equiv="Content-Type" content="text/html; ......

PHp´úÂë¹æ·¶


×¢£ºÕâÊÇ´ÓPHPCMS¿ª·¢ÎĵµÀï¿´µ½±àÂë¹æ·¶£¬ËäÃûΪPHPCMSµÄ¿ª·¢¹æ·¶£¬µ«ÎÒ¾õµÃËùÓеÄPHP±à³Ì¶¼¸ÃÈç´Ë¡£Ð´ÁËÄÇô¶àPHP£¬ºÜ¶à±àÂë¶ÔÕÕÕâ¹æ·¶¶¼¸Ð¾õǷȱºÜ¶à£¬½ñºóÒ»¶¨Òª¶ÔÕÕ¾ÀÕý¡£
Phpcms ±àÂë¹æ·¶
1. ÒýÑÔ…. 2
2. ÊÊÓ÷¶Î§…. 2
3. ±ê×¼»¯µÄÖØÒªÐԺͺô¦…. 3
4. PHP±àÂë¹æ·¶ÓëÔ­Ôò…. 3
4. ......

PHPÅäÖÃSQL Server 2008

1¡¢µ½Î¢Èí¹Ù·½È¥ÏÂÔØеÄÇý¶¯£¬ÏÂÔصØÖ·ÈçÏ£º
http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=ccdf728b-1ea0-48a8-a84a-5052214caad9
 
¡¡¡¡¹Ù·½ÎĵµÓÐÃèÊö£º
¡¡¡¡Refer to the documentation that is installed with the driver for a description of the new features in this ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ