Home php教程 php手册 经典的php for win32安装 (转)

经典的php for win32安装 (转)

Jun 21, 2016 am 09:13 AM
application nbsp php quot windows

1.到 www.php.net 下载最新的 php for win32.
2.解压全部文件到你需要的目录,推荐你选择: c:\php3\;  
3.拷贝文件php3-dist.ini到你的windows目录,然后更名为php3.ini;  
c:\windows 95或98是这个名字  
c:\winnt or c:\winnt40 这是NT的目录  
4.编辑你的php3.ini文件:把extension_dir选项设置成你解压文件的目录,这里我
们的是c:\php3  
5.把doc_root设置成你的WEB站点的根目录,如c:\apache\htdocs或者c:\webroot
  
6.从这里开始我们要分开设置了:  

*Windows 95/98/NT and PWS/IIS 3的走这边:  
运行regedit程序;  
@找到这个注册键: HKEY_LOCAL_MACHINE /System /CurrentControlSet /Servic
es /W3Svc /Parameters /ScriptMap.  
@在编辑菜单中选: New->String Value.  
@在键名处键入你希望让PHP3解释器解析的文件扩展名:例如 .php3 前面有个点,
不要忽略!  
@双击刚刚建的注册键,在键值处输入PHP.EXE文件的路径及文件名,例如 c:\php3
\php.exe %s %s 这两的s%可不能少哟,否则........  
@你可以重复上面两个步骤来增加很多要PHP3解析的文件名,我就增了一个aaa来让
它解释....:))))))  
@找到这个注册键:HKEY_CLASSES_ROOT  
@在编辑菜单里选新建->主键  
@把这个主键命名为.php3 同上面一样,然后双击它的缺省值,输入 phpfile  
@现在再在HKEY_CLASSES_ROOT建一个名为phpfile的主键,把它的缺省值设为 PHP
Script,然  
后在phpfile上单击右键选择新建->串值,命名为Shell,  
在Shell上击右键,新建一个Open键,  
在Open上击右键,新建一个command键  
把command键的键值设为php.exe的路径和文件名,如 c:\php3\php.exe,  
OK了!  

*apache同志来这里看看:  
·把所有的PHP文件解压到c:\php3g下;  
·把PHP3-DIST.ini更名成php3.ini,然后拷到WINDOWS目录下;  
·在apache的conf目录下编辑httpd.conf文件  
·把下面几行按实际的地方设置好:  
ScriptAlias /php3/ "c:/path-to-php-dir/"  

AddType application/x-httpd-php3 .php3  

AddType application/x-httpd-php3 .phtml  

Action application/x-httpd-php3 "/php3/php.exe"  


·Windows NT and IIS 4  
在INTERNET SERVICE MANAGER (MMC)里,  
选择站点  
右击,调出属性,选择主目录标签  
单击配置按钮,选择应用程序标签  
单击增加,在可执行文件框里输入 c:\php3\php.exe s% s% 注意不要丢掉s%  
在扩展名框里输入 .php3  
设置安全级,如果你使用NTFS文件系统的话,让PHP文件的目录拥有客户的执行权



----------------------------------------------------------------------
---
转载自"草堂论坛"
原文由"蜡人"发表



Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1673
14
PHP Tutorial
1278
29
C# Tutorial
1257
24
What happens if session_start() is called multiple times? What happens if session_start() is called multiple times? Apr 25, 2025 am 12:06 AM

Multiple calls to session_start() will result in warning messages and possible data overwrites. 1) PHP will issue a warning, prompting that the session has been started. 2) It may cause unexpected overwriting of session data. 3) Use session_status() to check the session status to avoid repeated calls.

Composer: Aiding PHP Development Through AI Composer: Aiding PHP Development Through AI Apr 29, 2025 am 12:27 AM

AI can help optimize the use of Composer. Specific methods include: 1. Dependency management optimization: AI analyzes dependencies, recommends the best version combination, and reduces conflicts. 2. Automated code generation: AI generates composer.json files that conform to best practices. 3. Improve code quality: AI detects potential problems, provides optimization suggestions, and improves code quality. These methods are implemented through machine learning and natural language processing technologies to help developers improve efficiency and code quality.

What is the significance of the session_start() function? What is the significance of the session_start() function? May 03, 2025 am 12:18 AM

session_start()iscrucialinPHPformanagingusersessions.1)Itinitiatesanewsessionifnoneexists,2)resumesanexistingsession,and3)setsasessioncookieforcontinuityacrossrequests,enablingapplicationslikeuserauthenticationandpersonalizedcontent.

How to handle high DPI display in C? How to handle high DPI display in C? Apr 28, 2025 pm 09:57 PM

Handling high DPI display in C can be achieved through the following steps: 1) Understand DPI and scaling, use the operating system API to obtain DPI information and adjust the graphics output; 2) Handle cross-platform compatibility, use cross-platform graphics libraries such as SDL or Qt; 3) Perform performance optimization, improve performance through cache, hardware acceleration, and dynamic adjustment of the details level; 4) Solve common problems, such as blurred text and interface elements are too small, and solve by correctly applying DPI scaling.

H5: Key Improvements in HTML5 H5: Key Improvements in HTML5 Apr 28, 2025 am 12:26 AM

HTML5 brings five key improvements: 1. Semantic tags improve code clarity and SEO effects; 2. Multimedia support simplifies video and audio embedding; 3. Form enhancement simplifies verification; 4. Offline and local storage improves user experience; 5. Canvas and graphics functions enhance the visualization of web pages.

How to use MySQL functions for data processing and calculation How to use MySQL functions for data processing and calculation Apr 29, 2025 pm 04:21 PM

MySQL functions can be used for data processing and calculation. 1. Basic usage includes string processing, date calculation and mathematical operations. 2. Advanced usage involves combining multiple functions to implement complex operations. 3. Performance optimization requires avoiding the use of functions in the WHERE clause and using GROUPBY and temporary tables.

How to uninstall MySQL and clean residual files How to uninstall MySQL and clean residual files Apr 29, 2025 pm 04:03 PM

To safely and thoroughly uninstall MySQL and clean all residual files, follow the following steps: 1. Stop MySQL service; 2. Uninstall MySQL packages; 3. Clean configuration files and data directories; 4. Verify that the uninstallation is thorough.

What are the cross-platform development environments in C? What are the cross-platform development environments in C? Apr 28, 2025 pm 09:24 PM

Cross-platform development in C is recommended to use VisualStudioCode, CLion and QtCreator. 1. VisualStudioCode is lightweight and flexible, suitable for multi-platform development, but the initial configuration is more complicated. 2. CLion integrates CMake, suitable for cross-platform projects, but licenses are expensive. 3.QtCreator supports cross-platform development, with built-in Qt library, but the learning curve is steep.

See all articles