<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    酒醒無(wú)夢(mèng)

    我在幻象的迷留界徘徊,誰(shuí)來(lái)指引幻象的輪回?

      BlogJava :: 首頁(yè) :: 聯(lián)系 :: 聚合  :: 管理
      8 Posts :: 0 Stories :: 0 Comments :: 0 Trackbacks

    1.在Apache中加載PHP

    LoadModule php5_module X:/php/php5apache2_2.dll
    PHPIniDir "X:/php"

    需要注意的是dll對(duì)應(yīng)的apache版本,也就是php5apache后面的數(shù)字。


    2.在PHP5中連接MySQL5
    PHP5中已經(jīng)不直接支持MySQL了,需要自己手動(dòng)配置,官方網(wǎng)站中是這樣說(shuō)明的:

    MySQL is supported with the only change being that MySQL support is no longer enabled by default in PHP 5. This essentially means that PHP doesn't include the --with-mysql option in the configure line so that you must now manually do this when compiling PHP. Windows users will edit php.ini and enable the php_mysql.dll DLL as in PHP 4 no such DLL existed, it was simply built into your Windows PHP binaries.

    Also, the MySQL client libraries are no longer bundled with PHP. More details on this topic are covered in the following FAQ and be sure to read the MySQL section for details on installing MySQL. An example configure line would be --with-mysql=/usr while Windows users will need the libmySQL.dll available to the system.

    先修改php.ini的內(nèi)容

    extension_dir = "X:\php\ext"

    并去掉下面兩項(xiàng)的分號(hào)

    extension=php_mysql.dll
    extension=php_mysqli.dll

    然后,將php目錄下的libmysql.dll拷貝到C:\Windows目錄,之后MySQL就可以正常連接了。

    寫個(gè)程序來(lái)測(cè)試一下吧。

    1 <?php
    2     $link = mysql_connect("localhost", "username", "password")
    3         or die("Could not connect: " . mysql_error());
    4     print ("Connected successfully");
    5     mysql_close($link);
    6 ?>

     


    posted on 2009-06-24 23:57 Rock N' Java 閱讀(258) 評(píng)論(0)  編輯  收藏 所屬分類: Programming
    主站蜘蛛池模板: japanese色国产在线看免费| 久久成人永久免费播放| 在线免费观看亚洲| 久久夜色精品国产噜噜噜亚洲AV | 亚洲无码高清在线观看| 国产成人高清亚洲一区久久| 四虎国产精品免费视| 无套内谢孕妇毛片免费看看| 亚洲国产精品无码久久青草| 国产精品无码免费专区午夜| 亚洲精品一品区二品区三品区| 在线观看片免费人成视频无码| 亚洲AV永久无码区成人网站| 三年片在线观看免费大全电影| 亚洲午夜成激人情在线影院| 97无码免费人妻超级碰碰碰碰 | 国产乱子伦片免费观看中字| 黄色免费网址大全| 亚洲精品乱码久久久久久| 免费A级毛片在线播放| 精品亚洲成A人无码成A在线观看 | 性色av免费观看| 日韩在线观看免费| 亚洲视频在线观看一区| 成人性生活免费视频| 国产黄色片免费看| 无码乱人伦一区二区亚洲| 成人免费无码视频在线网站| 免费看内射乌克兰女| 久久亚洲私人国产精品| 四色在线精品免费观看| yellow视频免费在线观看| 亚洲性无码av在线| 免费国产美女爽到喷出水来视频| 韩日电影在线播放免费版| 在线电影你懂的亚洲| 免费观看日本污污ww网站一区| 女人体1963午夜免费视频| 亚洲国产高清国产拍精品| 亚洲第一AAAAA片| 四虎成人免费大片在线|