标签:microsoft

浏览模式: 标准 | 列表 | 图文

Microsoft SQL Server Functions (PDO_SQLSRV)

Introduction

PDO_SQLSRV is a driver that implements the PHP Data Objects (PDO) interface to enable access from PHP to MS SQL Server (starting with SQL Server 2005) and SQL Azure databases.

Installation

The PDO_SQLSRV extension is enabled by adding appropriate DLL file to your PHP extension directory and the corresponding entry to the php.ini file. The PDO_SQLSRV download comes with several driver files. Which driver file you use will depend on 3 factors: the PHP version you are using, whether you are using thread-safe or non-thread-safe PHP, and whether your PHP installation was compiled with the VC6 or VC9 compiler. For example, if you are running PHP 5.3, you are using non-thread-safe PHP, and your PHP installation was compiled with the VC9 compiler, you should use the php_pdo_sqlsrv_53_nts_vc9.dll file. (You should use a non-thread-safe version compiled with the VC9 compiler if you are using IIS as your web server). If you are running PHP 5.2, you are using thread-safe PHP, and your PHP installation was compiled with the VC6 compiler, you should use the php_pdo_sqlsrv_52_ts_vc6.dll file.

For more information about system requirements, see » SQLSRV System Requirements.

The PDO_SQLSRV extension is only compatible with PHP running on Windows. For Linux, see ODBC and » Microsoft's SQL Server ODBC Driver for Linux.

System Requirements (Microsoft Drivers for PHP for SQL Server)

SQL Server 2008 R2

To access data in a SQL Server 2005 or later database using the Microsoft Drivers for PHP for SQL Server, you must have the following components installed on your computer:

  • Supported operating systems for version 3.0 of the driver include:

    • Windows Server 2008 R2 SP1

      Windows Vista SP2

      Windows Server 2008 SP2

      Windows 7 SP1

  • Supported operating systems for version 2.0 of the driver include:

    • Supported operating systems for version 2.0 of the driver include:

    • Windows Server 2003 Service Pack 1

    • Windows XP Service Pack 3

    • Windows Vista Service Pack 1 or later

    • Windows Server 2008

    • Windows Server 2008 R2

    • Windows 7

  • PHP 5. For information about how to download and install the latest stable binaries, visit http://php.net.

    Microsoft Drivers for PHP for SQL Server, version 3.0 requires PHP 5.3.0 or later. If possible, use PHP 5.3.6, or later. The version 2.0 driver works with PHP 5.2.4 or later. If possible, use PHP 5.2.13, or later.

  • A version of the driver file must be in your PHP extension directory. See Driver Versions later in this topic for information about the different driver files. See Loading the Microsoft Drivers for PHP for SQL Server for information on configuring the driver for the PHP runtime.

    (See The Data Center for the Microsoft Drivers for PHP for SQL Server for information on where to download the Microsoft Drivers for PHP for SQL Server.)

  • A Web server. Your Web server must be configured to run PHP. For information about hosting PHP applications with Internet Information Services (IIS) 6.0, see Using FastCGI to Host PHP Applications on IIS 6.0. For information about hosting PHP applications with IIS 7.0, see Using FastCGI to Host PHP Applications on IIS 7.0.

    The Microsoft Drivers for PHP for SQL Server has been tested using IIS 6 and IIS 7 with FastCGI.

  • The x86 version of SQL Server Native Client is required on the computer where PHP is running. If you are using a 64-bit operating system, the x86 version of SQL Server Native Client will be installed with the x64 version of SQL Server Native Client (do not install the x86 version of SQL Server Native Client on an x64 operating system).

    If you are using the SQLSRV driver, sqlsrv_client_info will return information about which version of SQL Server Native Client is being used by the Microsoft Drivers for PHP for SQL Server. If you are using the PDO_SQLSRV driver, you can use PDO::getAttribute to discover the version.

This section lists the drivers that are installed for version 2.0 and version 3.0 of the Microsoft Drivers for PHP for SQL Server. PHP version 5.2 is not supported in version 3.0 of the Microsoft Drivers for PHP for SQL Server.

Follow the installation instructions in Loading the Driver to configure the driver for use with the PHP runtime.

Microsoft Drivers 2.0 for PHP for SQL Server installs several versions of the driver:

Driver file

PHP version

Thread safe?

Use with PHP .dll

php_sqlsrv_53_nts_vc6.dll

php_pdo_sqlsrv_53_nts_vc6.dll

5.3

no

php5.dll

php_sqlsrv_53_nts_vc9.dll

php_pdo_sqlsrv_53_nts_vc9.dll

5.3

no

php5.dll

php_sqlsrv_53_ts_vc6.dll

php_pdo_sqlsrv_53_ts_vc6.dll

5.3

yes

php5ts.dll

php_sqlsrv_53_ts_vc9.dll

php_pdo_sqlsrv_53_ts_vc9.dll

5.3

yes

php5ts.dll

php_sqlsrv_52_nts_vc6.dll

php_pdo_sqlsrv_52_nts_vc6.dll

5.2

no

php5.dll

php_sqlsrv_52_ts_vc6.dll

php_pdo_sqlsrv_52_ts_vc6.dll

5.2

yes

php5ts.dll

If the name of the driver file contains "vc9", it should be used with a PHP version compiled with Visual C++ 9.0.

Microsoft Drivers 3.0 for PHP for SQL Server installs several versions of the driver:

Driver file

PHP version

Thread safe?

Use with PHP .dll

php_sqlsrv_53_nts.dll

php_pdo_sqlsrv_53_nts.dll

5.3

no

php5.dll

php_sqlsrv_53_ts.dll

php_pdo_sqlsrv_53_ts.dll

5.3

yes

php5ts.dll

雨林木风获Win7独家封装权???

雨林木风获Win7独家封装权???

去google或者百度搜索一下标题:“雨林木风获Win7独家封装权”,新闻超多啊,只是标题后面或者前面都还有一句:没永远的敌人。
确实,在商场上没有永远的敌人,只有利益,当利益到的时候,生死之仇也会放下刀子坐在桌前谈利益的。特别对这些上市公司之流,他们要照顾的是股东的利益。
可怜的蕃茄花园就这样消失在历史的长河里了,不过,总觉得雨林木风也不是那么厚道的,可惜了深度之流。
意外的事情其实很早就有了,比如说雨林木风封装的ubuntu,在大便(debian)的分支中居然也出现了,果然团队式的操作终究只是小动作,只有公司式的运作才能给这些技术人员带来利益。
但,这样功利性的东西能够维持多久,谁也说不清,或者只有纯技术性导向的公司才会一起有坚持,以功利性为导向的,只会哪个赚钱做哪个吧?
乱发发牢骚,毕竟我更喜欢的是深度。

webmatrix,微软你想干嘛 ?

webmatrix,微软你想干嘛 ?

webmatrix,这是微软的又一个重磅炸弹?微软,你究竟想干嘛 ?

Microsoft Web 平台不仅仅是一组功能强大的工具、服务器和技术,它还为网站、服务和应用程序的构建和托管提供了一个完整的生态系统。 无论您是要在网络上树立您公司的形象还是推出下一个 MySpace,我们都有让您走向成功的产品。 Microsoft Web 平台深受世界五百强公司信任,数以百万计的个人都在使用该平台,它一定能够适合您的需要。

看到上面的说明,或许你还没有过份在意,那么,下面这一小段的内容呢?

WebMatrix 是微软最新的 Web 开发工具,它包含了构建网站所需要的一切元素。您可以从开源 Web 项目或者内置的 Web 模板开始,也可以直接从无到有编写代码。简单并且完全是免费的。开发网站从来没有如此简单。为了开始建立网站,您只需要使用 Microsoft Web 平台安装器下载并安装 WebMatrix。这只会占用您短短的5分钟时间。当 WebMatrix 成功安装后,您可以非常方便地获得并下载最新版本的免费 Web 应用,如 WordPress, Joomla!, DotNetNuke 和 Orchard.您会发现 WebMatrix 在一个统一界面中提供了您需要的一切工具的特性,不需要再花费精力于在多种应用工具切换来完成一般性的 Web 开发任务。通过 WebMatrix,您只需要一步点击,即可编辑文件,管理数据库和更改服务器设置等。

看到上面这段呢,你怎么想?PHP/.net都在一起了,这样是否真的完美我不知道,但是这种免配置的功能是否会让网站又会铺天盖地的出来呢?

不过,说实话,我真不担心,要知道,国内还有一个大坎,那就是备案。黑黑,任你想法再多,备案都会卡死你。

更多介绍还是看官方吧:http://www.microsoft.com/web/webmatrix/,如果英文不好,可以切换成中文的。

试用microsoft web apps

试用microsoft web apps

MSN提示我有一封新邮件的时候,还以为又是垃圾邮件。打开后才发现,原来是微软社区过来的邮件,告诉我hotmail又有了新的features。看了一下邮件,原来最主要的是在skydriver里面把web apps也整合了。就是传说中的在线office。

试用了一下,感觉还行,只是功能嘛。与传统相比可就差太多了。不过这也没办法,毕竟一个是WEB,一个是软件。word,就别想太多了。和那些所见所得编辑器差不多。没什么好讲的。PPT我不感兴趣,excel嘛,如果不试公式,我想也没有多少用的机会。因此onenote就是我的首要测试了。

在office里面,也就一个onenote是我感兴趣的软件,可惜不支持在线数据,因此有了这个功能后,我就相对关注了一下,做了点小测试。

03e27ad436454ce857bc0026d1fe2e54

还算满意吧?毕竟是WEB版嘛,你哪能要求那么多。。。

正如我图中所说的,看来,致命的问题还是速度呀,在国内,没速度怎么行?目前onenote我已经在本地不使用了,改用wiz来管理我的一些知识库以及安排日常事项,小型软件也有小型软件的作用。

最希望的就是wiz能够开放FTP存储功能(可以直接使用第三方Ftp),这样就可以不受wiz限制了。数据啥的也会比较放心一点。现在的版本,不敢存私人数据。

微软的虚拟桌面:Desktops

微软的虚拟桌面:Desktops

微软在几年前为自己的PowerToys组件里添加了一个virtual desktop manager( MSVDM ),使得XP用户及XP以前版本的用户体验到了多个虚拟桌面的感觉,然而在最新OS里面,MSVDM并不为他们提供支持。所以想使用MSVDM的朋友,只能使用XP或以前版本了(虽然2000也不错,但现在不会使用它。。。)

或许是听到了群众的呼声吧,在今年8月份,微软又推出了一款小软件:desktops,终于可以象在linux下一样使用虚拟桌面了。这是一款缺点和优点同样明显的软件:
优点是:

  1. 文件很小,而且绿色
  2. 支持启动的时候加载
  3. 快捷键虽然固定,但相对比较灵活

缺点是:

  1. 只能设四个虚拟桌面,不能是三个或者2个
  2. 每个虚拟桌面都是一个独立的explorer进程,内存小的朋友尽量不要尝试
  3. 虚拟桌面出错的时候,由于独立进程explorer并没有关闭,所以你打开的软件,是找不到的。非得再运行一下这款软件

Desktops介绍和下载页:
下载页为:http://technet.microsoft.com/en-us/sysinternals/cc817881.aspx

Introduction

Desktops allows you to organize your applications on up to four virtual desktops. Read email on one, browse the web on the second, and do work in your productivity software on the third, without the clutter of the windows you’re not using. After you configure hotkeys for switching desktops, you can create and switch desktops either by clicking on the tray icon to open a desktop preview and switching window, or by using the hotkeys.

Using Desktops

Unlike other virtual desktop utilities that implement their desktops by showing the windows that are active on a desktop and hiding the rest, Sysinternals Desktops uses a Windows desktop object for each desktop. Application windows are bound to a desktop object when they are created, so Windows maintains the connection between windows and desktops and knows which ones to show when you switch a desktop. That making Sysinternals Desktops very lightweight and free from bugs that the other approach is prone to where their view of active windows becomes inconsistent with the visible windows.

Desktops reliance on Windows desktop objects means that it cannot provide some of the functionality of other virtual desktop utilities, however. For example, Windows doesn't provide a way to move a window from one desktop object to another, and because a separate Explorer process must run on each desktop to provide a taskbar and start menu, most tray applications are only visible on the first desktop. Further, there is no way to delete a desktop object, so Desktops does not provide a way to close a desktop, because that would result in orphaned windows and processes. The recommended way to exit Desktops is therefore to logoff.

对于微软的PowerToys,可以到这里看看:
http://www.microsoft.com/windowsxp/downloads/powertoys/xppowertoys.mspx
你会在这里发现一些很有用的软件。当然,MSVDM也在里面,下载在右侧,黑黑

Microsoft Web Platform Installer (Release Candidate)

Microsoft Web Platform Installer (Release Candidate)

The Web Platform Installer (Web PI) is a simple tool that installs Microsoft's entire Web Platform, including IIS, Visual Web Developer 2008 Express Edition, SQL Server 2008 Express Edition and the .NET Framework. Using the Web Platform Installer’s user interface, you can choose to install either specific products or the entire Microsoft Web Platform onto your computer. The Web PI also helps keep your products up to date by always offering the latest additions to the Web Platform.

New Updates! Now supporting Windows XP and Windows Server 2003, Web PI makes it easy to install and stay up-to-date with the Microsoft Web Platform. This updated release lets you install ASP.NET MVC, Visual Studio Tools for Silverlight, and much more!

System requirements

  • Supported Operating Systems are: Windows Vista RTM, Windows Vista SP1, Windows XP, Windows Server 2003, Windows Server 2008
  • You must have administrator privileges on your computer to run Web Platform Installer
  • .NET 2.0 Framework
  • Supported Architectures: x86 and 64-bit

Installation Steps

Install Web PI in 3 easy steps:

  1. Click on the "install now" button on this page to install and launch the Web Platform Installer.
  2. Choose the profile that meets your needs or choose "Your Choice" for full control on you what you install.
  3. Confirm and watch while Web PI downloads and installs what you need.

Once you have completed your platform installation, you can immediately start developing your Web solution. Support for Web Platform Installer can be received by visiting the Web Platform Installer Forum to discuss issues and suggestions.

对于expression web2几点郁闷之处

对于expression web2几点郁闷之处

microsoft expressionweb2是最近几年微软推出的expression studio套件中的一款软件,该软件也就是所谓的frontpage的改进版,在Web1的时候,试用过,当时没啥感觉,因为自己在写HTML代码的时候,大多还是使用手写。前段时间在看说明的时候,发现它说它支持了PHP,所以 跑到微软网上下载了一个trial版,想看看他是怎么样的支持PHP的。

这两年微软在支持PHP上据说是下了很多功夫的,先是在IIS7里面内置支持了PHP(没试过,不知道是否需要像以前一样,仍然需要下载PHP库,还是内置支持就象ASP被内置支持一样),后来为低版本的IIS推出了php的fastcgi模式,然后对于sql server 2005,又专门为PHP出了一个dll库,可以让在windows平台下的php操作SQLserver速度和效率上一台阶(主要还是因为PHP的 sql server库太老了,这么多年都没有更新,而PDO呢。。。又不是每台虚拟机都会安装)

这都是一些题外话,所以看到web2支持PHP的时候,我就第一时间下载下来看看。。

问题还是很多的,我是指支持PHP方面,不谈html的制作,那个我不关心。我还是比较习惯用editplus手写。

简单的试用了一下就发现以下几个问题:(我用的是英文版的,没用中文版,中文版比英文版大了200M我不知道有什么特别的意义,所以就下了英文版)

1、一些快捷键无法使用:这应该是拥有输入法的平台的缺限吧,对于老外来说,他们不需要什么输入法的(还是指英美国家),所以ctrl+blank,他们就可以当成快捷键,而我们按一下就成了输入法。不知道中文版中这个有没有改进。还有一些其他的快捷键,估计也差不多都是这些原因吧

2、所谓的支持PHP,只不过是简单的一些函数支持,而其他的都没有什么,如果仅仅是这样的话,以前有一款php design 2008比他要好的多。。。

这两点就足以让我不想使用它了。

什么是D2,写在D2参加之后

D2前端技术论坛(Designer & Developer Frontend Technology Forum),简称 D2 ,为国内前端开发者提供一个交流的机会,一起分享技术的乐趣,探讨行业的发展,以技术会友。它是中国所有前端开发者的节日。D2 将努力营造一种轻松自由的交流氛围,没有任何商业色彩,以纯粹的技术交流为根本,共同推动国内前端技术的发展,发掘前端技术可以创造的更大价值。

授课人介绍:

      • 马鉴 (Zerlot Ma, 七月)
        Platform Technology Evangelist
        Adobe
        Blog:www.7yue.com
      • 史珉头像 史珉 (Aspirin)
        高级Flash工程师
        土豆网
      • 王超群头像 王超群
        互联网策略顾问
        微软(中国)有限公司
        Blog:blogs.msdn.com/cqwang
      • 许湛头像 许湛 (Justin)
        前端开发主管
        阿里巴巴(国际站)
        Blog:www.alldone.cn
      • 李戎头像 李戎 (小麦)
        资深前端开发工程师
        土豆网
        Blog:www.mikkolee.com
      • 郑叶飞头像 郑叶飞 (怿飞)
        资深前端开发工程师
        淘宝网
        Blog:www.planabc.net


D2参加随感

D2参加随感

今天在D2上海大会上呆了一天,作为一名web开发人员,对于前端技术总还是需要研究和追新的,虽然他们上的课中有一部分我已经了解或者永远不会用到。但并不代表我不能从中学习知识。

一大早和mpeg就往建工锦江大酒店赶,到了之后才发现,和上次ThinkSite(欣才)举办的一个小型沙龙是在同一个地方,由于我的号码已经是100多了,去的时候也是很紧张的,怕是他们开始了不让俺进。

进去时,正是adobe的马鉴在介绍flash10的一些新特性,感觉flash可做的事情真多呀。好恐怖呀。印象最深的是一块画布在被采用各种 技术进行渲染,性能实在恐怖(不过他是用mac的,我不知道windows下,是否还有同样的性能)
接下来就是土豆网的大麦?介绍了flash的协作开发,可惜由于adobe的朋友讲的太优秀了,相比较而言,他讲的实在就有点。。。。
吃过饭后进行抽奖,象俺这么英俊潇洒的人一向遭人妒忌的,所以,奖项就离我远去了。
接着是alibaba的一位帅哥讲了敏捷开发,节奏把握的很好,确实很有水平。在他讲完之后,接着是微软的王超奇介绍IE8的一些新特性。说实话,他讲的内容没有什么特别的,毕竟这些都是可以看news list看得到的,但是演讲之前的那段广告视频却非常不错,没见过,也吸引了很多眼球 。淘 宝UED和土豆小麦在最后讲了一些内容,都是在赶时间了。。。

本次的亮点:1、叽歪互动 2、书
或许搞技术的都不太擅长直接语言交流,这个叽歪互动则让更多的人进行了参与,在以前的一些会议中,看起来是不可想像的,但如今却成了一种新的交流方式(依稀记得好象是某个年会上开始有叽歪参与,然后就一发不可收拾了,叽歪也随之出名)
书是第二个亮点,可惜我一本都没有拿到,好象是那本:悟透javascript还有adobe air开发(看到有人在送这本书给其他人时,那人感慨了一句:啊,是译本呀,唉我还以为是原版呢。)看来国内对于译本的质量都不太看好呀。

感受还是很深的,一直在搞后端的WEB开发,不料前端已经走的这么快了。再次感慨一下(听说,会上的资料会提供下载,不知道何时能够有的下载)