首页 \ 问答 \ redis window 版可以直接应用么

redis window 版可以直接应用么

更新时间:2023-12-21 22:12

最满意答案

可以直接使用ODBC数据库功能 php自带

可以使用PDO 驱动
Mssql 函数

安装相应扩展
1 PHP 的 Windows 版本已内建对此扩展的支持。
linux 比较繁琐,请参考php手册 根据需要编译

2
unix系统自带PDOLite扩展 只是需要自行启动之

win32 系统 extension=php_pdo.dll
extension=php_pdo_mysql.dll

3

extension=php_mssql.dll  (win32)
--with-mssql[=DIR] (linux)

其他回答

虽然我很聪明,但这么说真的难到我了

相关问答

更多
  • 可以直接使用ODBC数据库功能 php自带 可以使用PDO 驱动 Mssql 函数 安装相应扩展 1 PHP 的 Windows 版本已内建对此扩展的支持。 linux 比较繁琐,请参考php手册 根据需要编译 2 unix系统自带PDOLite扩展 只是需要自行启动之 win32 系统 extension=php_pdo.dll extension=php_pdo_mysql.dll 3 extension=php_mssql.dll (win32) --with-mssql[=DIR] (linux)
  • 1. 可以直接使用ODBC数据库功能 php自带 2. 可以使用PDO 驱动 3. Mssql 函数 安装相应扩展 1 PHP 的 Windows 版本已内建对此扩展的支持。 linux 比较繁琐,请参考php手册 根据需要编译 2 unix系统自带PDOLite扩展 只是需要自行启动之 win32 系统 extension=php_pdo.dll extension=php_pdo_mysql.dll 3 extension=php_mssql.dll (win32) --with-mssql[=DIR] ...
  • 在这种情况下我会使用PDO: http : //www.php.net/manual/en/pdo.construct.php 您可以创建到SQL Server的DSN连接 $dsn = "sqlsrv:Server=servername;Database=databasename" $user = 'dbuser'; $password = 'dbpass'; try { $dbh = new PDO($dsn, $user, $password); } catch (PDOException ...
  • PHP5.6及其依赖可以在OndřejSurý存储库中找到。 PHP5.6已经安装在您的系统上,您可以按照以下php5.6-curl安装一个包php5.6-curl : apt install apt-transport-https lsb-release ca-certificates wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg echo "deb https://packages.sury.or ...
  • 请检查php(apache)配置并检查是否已激活所需的模块 i finally figured it out. it's true about nginx rewrite. my previous setting in vhost file is: try_files $uri $uri/ /index.php?q=$request_uri; i changed to try_files $uri $uri/ /index.php?$query_string; this problem is clearly ...
  • 试试这个连接到数据库: $serverName = "TRANSIP-VPS\SQLEXPRESS"; $connectionInfo = array( "Database"=>"Vitare" ); $conn = sqlsrv_connect( $serverName, $connectionInfo); Try this to connect to the database: $serverName = "TRANSIP-VPS\SQLEXPRESS"; $connectionInfo = arra ...
  • 编辑 - 首先你需要下载驱动http://msdn.microsoft.com/en-us/sqlserver/ff657782.aspx 现在去你的XAMPP安装和搜索php.dll它会显示正确的PHP DLL你有。 1)将以下文件移至xampp / php / ext目录。 php_sqlsrv_53_nts_vc9.dll php_pdo_sqlsrv_53_nts_vc9.dll 2)如果你有php5ts.dll然后移动以下文件到xampp / php / ext目录。 php_sqlsrv_53 ...
  • 此系统已注册到Red Hat Subscription Management,但未收到更新。 您可以使用subscription-manager分配订阅。 这是一个没有官方存储库的问题,您将找不到一些依赖项。 Requires: libt1.so.5()(64bit) t1lib是基础存储库的一部分,所以......你真的需要注册这个系统。 Requires: httpd 同样的问题。 BTW为什么要启用这么多的存储库,如果你想要PHP 5.6,你只需要“remi-safe”和“remi-php ...
  • 请尝试使用此模块: sudo a2enmod php5.6 sudo service apache2 restart Try this module instead: sudo a2enmod php5.6 sudo service apache2 restart
  • 我找到了自己的问题。 显然,来自表的数据不是UTF-8编码的,因此导致一个服务失败。 解决方法是将"CharacterSet" => "UTF-8"放入SQLSRV的连接详细信息数组中。 出于某种原因,这种编码在PHP 5.4上不是问题,但从那里开始。 但是,最佳做法是确保在数据库连接详细信息中删除该编码。 I've found my issue. Apparently there was data coming from a table that was not UTF-8 encoded therefo ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。