易截截图软件、单文件、免安装、纯绿色、仅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下哪种方法合适解析xml,转换成json格式

解析xml文档的类库有很多种,比较常用的就是SimpleXML,DOM Document,XMLReader,基于SAX的xml_parse函数。
根据xml文档结构,以及需求的不同,要选择好对应的类库。
解析小的文档的话,使用SimpleXML比较合适,简单的几个函数就可以搞定。
如果文档非常巨大,最好是XMLReader打开,中间转换成DOM来解析,感觉DOM与XPat ......

基于PHP网页快照类

<?PHP
//====================================================
//                FileName:        snap.class.php
//             ......

PHP教程:AJAX 应用WEB开发

AJAX无疑是2005年炒的最热的Web开发技术之一,当然,这个功劳离不开Google。我只是一个普通开发者,使用AJAX的地方不是特别多,我就简单的把我使用的心得说一下。(本文假设用户已经具有JavaScript、HTML、CSS等基本的Web开发能力)
  [AJAX介绍]
  Ajax是使用客户端脚本与Web服务器交换数据的Web应用开发方法。Web页 ......

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号