易截截图软件、单文件、免安装、纯绿色、仅160KB

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 release. The SQL Server Driver for PHP download is available to all SQL Server users at no additional charge. The SQL Server Driver for PHP is a PHP 5 extension that allows for the reading and writing of SQL Server data from within PHP scripts. The extension provides a procedural interface for accessing data in all editions of SQL Server 2005 and SQL Server 2008.
  根据官方文档的描述,微软提供的Driver是同时提供给SQL Server 2005和SQL Server 2008两个版本使用的。
     下载驱动(上边有链接地址)下载过后的驱动包里面的内容如下图:
    
   
2、需要修改C:\WINDOWS\php.ini中的配置:
   查找;extension_dir 修改为extension_dir="E:\Program Files\php-5.3.1\ext"这里的目录是安装的PHP目录,ext里是PHP的一些扩展文件,运行时需要加载其中的一些,现在连接sqlserver,所以一定要去掉extension_dir 前面的分号;
3、把上图解压开的需要的dll文件拷贝到extension_dir设置的扩展目录里面。
    其中‘53’表示php的版本,‘ts’表示启动线程安全,‘nts’表示未启动线程安全,vc6为apache配置,vc9为iis配置
   
4、修改php.ini实现扩展:
   在php.ini的一大堆;extension=**.dll格式里面添加行,此部分位于以下注释下边一般:
; Windows Extensions
; Note that ODBC support is built in, so no dll is needed for it.
; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5)
; extension folders as well as the separate PECL DLL download (PHP 5).
; Be sure to appropriately set the extension_dir directive.
    添加拷贝的dll文件,例:
extension=php_sqlsrv_53_ts_v9.dll
  注意=号右边是解开过后的扩展的两个驱动的文件名,必须保证此文件在配置好的扩展目录内,而


相关文档:

php增,改,删除操作

<?php
class main extends spController
{
    function index(){
    echo "<p align=center><h1>HIS基础数据维护</h1>";
    echo "<p align=center><h2>科室字典</h2>";
    $contentsurl=spUrl("main", "i ......

php while 与do while的区别

本教程来讲一下关于在php编程中常用到的循环语句do while与while的区别吧,while 是当条件为真是才执行而do while至少会执行一下,下面我们就来看看
do {
}while(条件)
看do while的实例吧。
<?
$a =10;
do {
echo $a;
}while ($a>11)
这里会输出10;然后循环终止,那么我们来看看while的实例吧。
$a=10;
w ......

php中判断自定义方法是否存在

<?php
 
 
  function myFun(){
   echo "hello,张三";
  }
 
  //利用function_exists方法判断自动以方法是否存在
  //该方法参数为要判断的自定义方法的方法名,可写为
  //"myFun"或myFun
  if(function_exists(myFun)){
   echo "存在 ......

PHP中全局变量的使用

<?php
 
 
  //声明全局变量
  $num = "张三";
 
  //定义一个自定义方法
  function my_fun($temp1,$temp2 = "people"){
   //要数用方法外部声明的全局变量,必须使用关键字global先在
   //自定义方法中获得到方法外部声明的全局变量的值,才能在方 ......

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; ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号