Although the LAMP combination is very good, if you want to set up a Web virtual host server that supports PHP, ASP, ASP.NET, JSP, and Perl at the same time, it is best to use IIS 6 of Windows 2003. There are many articles on the Internet about configuring PHP on IIS 6, but those methods either have poor performance or are troublesome to upgrade. The following method allows you to upgrade very conveniently after the first configuration.
The upgrade mentioned here refers to upgrading from a certain php4 version to another php4 version, or from a certain php5 version to another php5 version, not from php4 to php5.
Preparation:
1. An installed Windows 2003 server, and IIS 6 has been installed.
2. Download the Windows version of the PHP binary compressed package
Installation:
Unzip the PHP binary compressed package to the C:php directory (assuming here that the C: drive is the system disk, that is, the disk with the Windows system installed , if the system disk is the D: disk, decompress it to the D:php directory, and so on, the same below).
Then open "My Computer"->"Properties"->"Advanced"->"Environment Variables"->"System Variables"->"path", edit its value and add it in front The following path address:
C:php;C:phpdlls;C:phpextensions;C:phpsapi;
Copy php.ini-dist or php.ini-recommended to the C:Windows directory and rename it php.ini, generally the server that officially releases the website uses php.ini-dist, and the server used as a debugging server is better to use php.ini-recommended. Of course, under normal circumstances, this php.ini still needs to be modified according to the actual situation.
Here are some necessary modification options:
extension_dir = "C:phpextensions"
This is the directory where the PHP extension is placed. Please make sure it is the same as the directory you actually installed.
extension=php_mbstring.dll
🎜> extension=php_db.dll
extension=php_dba.dll
extension=php_dbase.dll
extension=php_dbx.dll
extension=php_domxml.dll
extension=php_exif.dll
;extension=php_fdf.dll
;extension=php_filepro.dll
extension=php_gd2.dll
extension=php_gettext.dll
>;extension=php_ifx.dll
;extension=php_iisfunc.dll
extension=php_imap.dll
;extension=php_interbase.dll
🎜> extension=php_mcrypt.dll
extension=php_mhash.dll
extension=php_mime_magic.dll
extension=php_ming.dll
extension=php_mssql.dll
extension=php_msql.dll
; extension=php_oci8.dll
extension=php_openssl.dll
extension=php_oracle.dll
extension=php_pdf.dll
extension=php_pgsql.dll
🎜> extension=php_shmop.dll
extension=php_snmp.dll
extension=php_sockets.dll
dll
extension=php_xslt.dll
extension=php_yaz.dll
extension=php_zip.dll
Of the above, those without a semicolon at the beginning are open extensions, and those with a semicolon are unopened extensions. . The above settings include all extensions that can be turned on by default on Windows 2003 (the ones listed here are for PHP 4).
session.save_path = c:sessions
This is the directory where session files are saved by default. This directory must be an existing directory, otherwise the default session function will be invalid. What I set up here is a directory on a ramdisk. Setting session.save_path on ramdisk can speed up session processing. If you have not installed ramdisk, you can assign it to any directory on other disks, such as C:sessions directory, C:WindowsTemp directory, etc.
OK, the basic work is done, now it’s time to configure IIS.
Open "Internet Information Services (IIS) Manager", in "Web Service Extension", select "Add a new Web Service Extension", the extension name can be filled in "PHP ISAPI Extension", the required file selection: C :phpsapiphp4isapi.dll (if PHP5 is installed, this is C:phpsapiphp5isapi.dll, the same below), and set the extension status to allowed.
Open "Website"->"Properties"->"ISAPI Filter"->"Add", fill in "PHP" as the filter name, and still select C:phpsapiphp4isapi.dll for the executable file.
Open "Website"->"Properties"->"Home Directory"->"Application Settings"->"Configuration"->"Application Extension"->"Add", you can To execute the file, choose C:phpsapiphp4isapi.dll. Fill in the extension ".php", and the action is limited to "HEAD, GET, POST".
Open "Website"->"Properties"->"Document"->"Enable default content document"->"Add", you can add index.php as the default content document.
Then select "Server Machine Name" -> "All Tasks" -> "Restart IIS" to restart IIS.
Test
Create a test page in the default website publishing directory:
Download: phptest.php
phpinfo();
?>
If you open this page you can see PHP installation configuration information, even if the installation is successful.
If you want to execute the php program more optimally, you can install ZendOptimizer-2.6.0-Windows-i386.exe. The installation of this thing is very simple and will not be introduced here.
Upgrading
Upgrading is now very simple. You only need to download the new version of PHP binary compressed package, delete the original C:php directory, decompress the new version into the C:php directory, and then restart IIS. There is no need to modify any configuration or copy any files to the System32 directory. Isn’t it very convenient?

技嘉的主板怎么设置键盘开机首先,要支持键盘开机,一定是PS2键盘!!设置步骤如下:第一步:开机按Del或者F2进入bios,到bios的Advanced(高级)模式普通主板默认进入主板的EZ(简易)模式,需要按F7切换到高级模式,ROG系列主板默认进入bios的高级模式(我们用简体中文来示范)第二步:选择到——【高级】——【高级电源管理(APM)】第三步:找到选项【由PS2键盘唤醒】第四步:这个选项默认是Disabled(关闭)的,下拉之后可以看到三种不同的设置选择,分别是按【空格键】开机、按组

php把负数转为正整数的方法:1、使用abs()函数将负数转为正数,使用intval()函数对正数取整,转为正整数,语法“intval(abs($number))”;2、利用“~”位运算符将负数取反加一,语法“~$number + 1”。

1.处理器在选择电脑配置时,处理器是至关重要的组件之一。对于玩CS这样的游戏来说,处理器的性能直接影响游戏的流畅度和反应速度。推荐选择IntelCorei5或i7系列的处理器,因为它们具有强大的多核处理能力和高频率,可以轻松应对CS的高要求。2.显卡显卡是游戏性能的重要因素之一。对于射击游戏如CS而言,显卡的性能直接影响游戏画面的清晰度和流畅度。建议选择NVIDIAGeForceGTX系列或AMDRadeonRX系列的显卡,它们具备出色的图形处理能力和高帧率输出,能够提供更好的游戏体验3.内存电

广联达软件是一家专注于建筑信息化领域的软件公司,其产品被广泛应用于建筑设计、施工、运营等各个环节。由于广联达软件功能复杂、数据量大,对电脑的配置要求较高。本文将从多个方面详细阐述广联达软件的电脑配置推荐,以帮助读者选择适合的电脑配置处理器广联达软件在进行建筑设计、模拟等操作时,需要进行大量的数据计算和处理,因此对处理器的要求较高。推荐选择多核心、高主频的处理器,如英特尔i7系列或AMDRyzen系列。这些处理器具有较强的计算能力和多线程处理能力,能够更好地满足广联达软件的需求。内存内存是影响计算

主板上SPDIFOUT连接线序最近我遇到了一个问题,就是关于电线的接线顺序。我上网查了一下,有些资料说1、2、4对应的是out、+5V、接地;而另一些资料则说1、2、4对应的是out、接地、+5V。最好的办法是查看你的主板说明书,如果找不到说明书,你可以使用万用表进行测量。首先找到接地,然后就可以确定其他的接线顺序了。主板vdg怎么接线连接主板的VDG接线时,您需要将VGA连接线的一端插入显示器的VGA接口,另一端插入电脑的显卡VGA接口。请注意,不要将其插入主板的VGA接口。完成连接后,您可以

php除以100保留两位小数的方法:1、利用“/”运算符进行除法运算,语法“数值 / 100”;2、使用“number_format(除法结果, 2)”或“sprintf("%.2f",除法结果)”语句进行四舍五入的处理值,并保留两位小数。

判断方法:1、使用“strtotime("年-月-日")”语句将给定的年月日转换为时间戳格式;2、用“date("z",时间戳)+1”语句计算指定时间戳是一年的第几天。date()返回的天数是从0开始计算的,因此真实天数需要在此基础上加1。

php判断有没有小数点的方法:1、使用“strpos(数字字符串,'.')”语法,如果返回小数点在字符串中第一次出现的位置,则有小数点;2、使用“strrpos(数字字符串,'.')”语句,如果返回小数点在字符串中最后一次出现的位置,则有。


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

Dreamweaver Mac version
Visual web development tools

Notepad++7.3.1
Easy-to-use and free code editor

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft
