sql 2005 for php

  • l0_965104
    了解作者
  • 500.1KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-09 12:54
    上传日期
sql 2005 for php,但你开发PHP程序需要调用sql server数据时很有用哦!
sql 2005 for php.rar
  • sql 2005 for php
  • php_sqlsrv_ts.dll
    206KB
  • 新建 文本文档.txt
    3.1KB
  • SQLServerDriverForPHP_Readme.htm
    14.3KB
  • php_sqlsrv_license.rtf
    142.6KB
  • SQLServerDriverForPHP.chm
    312.1KB
  • php_sqlsrv.dll
    202KB
内容介绍
轻松搭建PHP5和SQL Server 2005开发环境来源:blog.csdn.net 作者: 发布时间:2008-05-22 SQL Server 2005 php驱动是php5的一个扩展,它提供访问SQL Server 2005和SQL Server 2000.该扩展数据访问接口可以应用在所有版本(包括体验版)的SQL Server 2005和SQL Server 2000.该SQL Server 2005 php驱动支持Windows验证,参数绑定(译预处理),大对象流,原数据访问和错误处理. php程序员站 在你使用IIS:Internet Information Services和FastCGI组件,该驱动拥有良好的性能和稳定的Windows平台. 关于FastCGI组件可访问:FastCGI for IIS. www.phperz.com 访问http://blogs.msdn.com/sqlphp和SQL Server Data Access Forum寻求支持和提供反馈 php程序员站 原文: phperz.com The SQL Server 2005 PHP Driver is a PHP 5 extension that provides data access to SQL Server 2005 and SQL Server 2000. The extension provides a procedural interface for accessing data in all versions (including Express) of SQL Server 2005 and SQL Server 2000. The SQL Server 2005 Driver for PHP API includes support for Windows Integrated Authentication, parameter binding, streaming of large objects, metadata access, and error handling. www.phperz.com The PHP Driver takes advantage of the improved performance and stability of PHP on the Windows platform when you are using Internet Information Services (IIS) and the FastCGI component. For more information about the FastCGI component, see FastCGI for IIS . phperz.com The functionality described and demonstrated in this document is a subset of the functionality planned for the final version of the SQL Server 2005 Driver for PHP and is subject to change. To provide feedback or find support, visit http://blogs.msdn.com/sqlphp or SQL Server Data Access Forum. www~phperz~com 配置: php程序员之家 1.将php_sqlsrv.dll 或 php_sqlsrv_ts.dll 放到PHP的扩展目录中(PHP\EXT). 2.编辑php.ini文件,添加以下扩展: extension=php_sqlsrv.dll 或 extension=php_sqlsrv_ts.dll 3.重启服务器. php程序员站 示例: 以下为引用的内容: <?php $dbbase='testlab'; $uid='sa'; www~phperz~com $pwd='infobus'; $connectionInfo=array("Database"=>$dbbase,"UID"=>$uid,"PWD"=>$pwd); phperz~com $serverName="JUJUMAOEXPRESS"; if(!($conn=sqlsrv_connect($serverName,$connectionInfo))){ echo "Connection could not be established. "; www.phperz.com die(print_r(sqlsrv_errors(),true)); } $tSQL="SELECT login_mail FROM account"; if(!($stmt=sqlsrv_query($conn,$tSQL))){ phperz.com echo "Error in statement. "; die(print_r(sqlsrv_errors(),true)); } if(!(sqlsrv_fetch($stmt))){ phperz~com echo "Error in retrieving row. "; die(print_r(sqlsrv_errors(),true)); } $loginmail=sqlsrv_get_field($stmt,1); www.phperz.com echo $loginmail; sqlsrv_close($conn); ?> www~phperz~com 如果你在启动应用服务器时提示: The application has failed to start because php5.dll was not found 或 缺少php5.dll 请访问:http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=3175669&SiteID=1 或去PHP下载mirror包: http://us3.php.net/get/php-5.2.5-nts-Win32.zip/from/a/mirror 解开包后把php5.dll放入你的PHP根目录即可 原文地址:http://blog.csdn.net/xiaofanku/archive/2008/05/19/24569
评论
    相关推荐