国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Home php教程 php手冊(cè) Win200下PHP服務(wù)器的簡單配置

Win200下PHP服務(wù)器的簡單配置

Jun 21, 2016 am 09:14 AM
dll mysql php

服務(wù)器

這里很多人用的Apache,很少人放出2000的簡單配置說明,我就寫出來了一點(diǎn)點(diǎn),也算是共享吧!

先安裝mysql,默認(rèn)安裝路徑為:c:mysql; 安裝完成后,打開“開始”按鈕中的“運(yùn)行”,輸入命令:C:mysql/bin/winmysqladmin,并執(zhí)行; 在第一次用它時(shí),需要建立管理員名及密碼,我分別設(shè)置為root和(yourpassword)。關(guān)閉它后,程序自動(dòng)在狀態(tài)行下建立一個(gè)“紅綠燈”的小圖標(biāo)。

現(xiàn)在開始安裝php4,將軟件包先用winrar解壓到c:php4下,再將目錄下的所有dll文件拷到c;winntsystem32下,不要覆蓋已有的dll文件;接著將目錄下的php.exe和php.ini兩個(gè)文件拷到c:winnt下; 修改php.ini中的 ; cgi.force_redirect = 1 為 cgi.force_redirect = 0 保存. 打開“開始”按鈕下的“程序”=》“管理工具”=》“internet服務(wù)管理器”,選中“默認(rèn)web站點(diǎn)”,打開它的“屬性”窗口。在“web站點(diǎn)”頁下,改變“IP地址”:“全部未分配”為“(您機(jī)子的ip地址,例如:202.195.243.131)”;“TCP端口”為“80”。 接著,選中“主目錄”頁,單擊“應(yīng)用程序設(shè)置”下的“配置”按鈕后,在新窗口下單擊“添加”按鈕;在“可執(zhí)行文件”中輸入“C:WINNTphp.exe %s %s”,在“擴(kuò)展名”中輸入“.php”,點(diǎn)擊“確定”。 接著,選中“ISAPI篩選器”頁,單擊“添加”按鈕;在“篩選器名稱”中輸入“php”,在“可執(zhí)行文件”中輸入“C:WINNTsystem32php4isapi.dll”,點(diǎn)擊“確定”。 接著,選中“文檔”頁,單擊“添加”按鈕;在“默認(rèn)文檔名”中輸入“index.php”,點(diǎn)擊“確定”,并將其提高到最高級(jí)。您還可以添加常用的php文件名,如:“default.phtml”、“index.php3”等。 關(guān)閉所有窗口,重啟系統(tǒng)后,可打開IE瀏覽器進(jìn)行測試。



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

Undress AI Tool

Undress AI Tool

Undress images for free

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.

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 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)

PHP Control Structures: If/Else PHP Control Structures: If/Else Jul 18, 2025 am 04:02 AM

When using if/else control structure for conditional judgment in PHP, the following points should be followed: 1. Use if/else when different code blocks need to be executed according to the conditions; 2. Execute if branches if the condition is true, enter else or elseif if they are false; 3. When multi-conditional judgment, elseif should be arranged in logical order, and the range should be placed in front of the front; 4. Avoid too deep nesting, it is recommended to consider switch or reconstruction above three layers; 5. Always use curly braces {} to improve readability; 6. Pay attention to Boolean conversion issues to prevent type misjudgment; 7. Use ternary operators to simplify the code in simple conditions; 8. Merge and repeat judgments to reduce redundancy; 9. Test boundary values to ensure the complete logic. Mastering these techniques can help improve code quality and stability.

Hello, PHP! Hello, PHP! Jul 18, 2025 am 04:35 AM

Of course it is useful. PHP still plays an important role in web development, especially for CMS and e-commerce platforms. 1. The threshold for PHP is low, the syntax is intuitive, and suitable for beginners to get started; 2. It is widely used in dynamic web development, such as user login, form submission and other functions; 3. It can build an API interface, which is more efficient with the Laravel framework; 4. It supports CMS customization, such as WordPress plug-in and theme development; 5. It can write automated task scripts, such as data crawling and report generation; 6. Learning suggestions include mastering basic syntax, combining database exercise projects, using mainstream frameworks, focusing on security defense and referring to open source projects. PHP is highly practical and has a mature ecological environment, and is still widely used in small and medium-sized projects.

Install PHP and Apache Install PHP and Apache Jul 18, 2025 am 04:38 AM

To run the PHP website on your local computer, you need to install PHP and Apache. Windows users download Apache and configure httpd.conf, then download PHP and modify the configuration file to load the PHP module; macOS/Linux users can use Homebrew or apt command to install. Finally, create an info.php file in the root directory of the website and test whether it is successful.

Getting Started with PHP Installation Getting Started with PHP Installation Jul 18, 2025 am 04:06 AM

The key to installing PHP is to clarify the usage scenario and system environment. 1. Determine the operating system and PHP version: Windows can use XAMPP or WAMP, macOS recommends Homebrew, Linux is installed through apt/yum, and it is recommended to choose version 8.1 or 8.2. 2. Local development environment construction: XAMPP, MAMP or Docker is recommended. You can also install it with Homebrew and verify it with php-v. 3. Server installation PHP: Taking Ubuntu as an example, execute aptupdate and installation commands and restart Apache/Nginx, and run through info.php test. 4. Frequently asked questions: Pay attention to extension activation, consistent path, permission settings and

what is undefined index in PHP what is undefined index in PHP Jul 18, 2025 am 04:07 AM

The reasons and ways to avoid the occurrence of "undefinedindex" error: 1. The reasons include accessing GET/POST parameters that are not passed, array logic errors, variable index not set, etc.; 2. Solutions include using isset() to check whether the key exists, using array_key_exists() to judge, and using the empty merge operator to provide default values; 3. Development suggestions include unified parameter verification, enabling debugging prompts, viewing data structures, and using IDE inspection functions.

PHP Multiline Comments for Beginners PHP Multiline Comments for Beginners Jul 18, 2025 am 04:10 AM

The correct way to use multi-line comments in PHP is to start with / start with / end with /, the comment content will not be executed by the parser. For example: /This is a multi-line comment, you can write a detailed description/. Multi-line comments are suitable for interpreting complex logic, documenting functions or classes, leaving notes for other developers, and temporarily disabling code blocks. Notes include not nesting multi-line comments to avoid unnecessary */ in comment blocks. The best practice is to keep the annotations clear and concise, avoid redundancy, update the annotations in a timely manner, and use the annotations to describe the functions, parameters and return values before the function.

Working with PHP Strings Working with PHP Strings Jul 18, 2025 am 04:10 AM

PHP string processing requires mastering core functions and scenarios. 1. Use dot numbers or .= for splicing, and recommend arrays for splicing large amounts of splicing; 2. Use strpos() to search, replace str_replace(), pay attention to case sensitivity and regular usage conditions; 3. Use substr() to intercept, and use sprintf() to format; 4. Use htmlspecialchars() to output HTML, and use parameterized query to database operations. Familiar with these function behaviors can deal with most development scenarios.

why am I getting undefined index in PHP why am I getting undefined index in PHP Jul 18, 2025 am 04:12 AM

The "undefinedindex" error appears because you try to access a key that does not exist in the array. To solve this problem, first, you need to confirm whether the array key exists. You can use isset() or array_key_exists() function to check; second, make sure the form data is submitted correctly, including verifying the existence of the request method and field; third, pay attention to the case sensitivity of the key names to avoid spelling errors; finally, when using hyperglobal arrays such as $_SESSION and $_COOKIE, you should also first check whether the key exists to avoid errors.

See all articles