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

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)里,??
選擇站點??
右擊,調出屬性,選擇主目錄標簽??
單擊配置按鈕,選擇應用程序標簽??
單擊增加,在可執(zhí)行文件框里輸入 c:\php3\php.exe s% s% 注意不要丟掉s%??
在擴展名框里輸入 .php3??
設置安全級,如果你使用NTFS文件系統(tǒng)的話,讓PHP文件的目錄擁有客戶的執(zhí)行權
!


----------------------------------------------------------------------
---
轉載自"草堂論壇"
原文由"蠟人"發(fā)表



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)

How to get the current session ID in PHP? How to get the current session ID in PHP? Jul 13, 2025 am 03:02 AM

The method to get the current session ID in PHP is to use the session_id() function, but you must call session_start() to successfully obtain it. 1. Call session_start() to start the session; 2. Use session_id() to read the session ID and output a string similar to abc123def456ghi789; 3. If the return is empty, check whether session_start() is missing, whether the user accesses for the first time, or whether the session is destroyed; 4. The session ID can be used for logging, security verification and cross-request communication, but security needs to be paid attention to. Make sure that the session is correctly enabled and the ID can be obtained successfully.

PHP get substring from a string PHP get substring from a string Jul 13, 2025 am 02:59 AM

To extract substrings from PHP strings, you can use the substr() function, which is syntax substr(string$string,int$start,?int$length=null), and if the length is not specified, it will be intercepted to the end; when processing multi-byte characters such as Chinese, you should use the mb_substr() function to avoid garbled code; if you need to intercept the string according to a specific separator, you can use exploit() or combine strpos() and substr() to implement it, such as extracting file name extensions or domain names.

How to split a string into an array in PHP How to split a string into an array in PHP Jul 13, 2025 am 02:59 AM

In PHP, the most common method is to split the string into an array using the exploit() function. This function divides the string into multiple parts through the specified delimiter and returns an array. The syntax is exploit(separator, string, limit), where separator is the separator, string is the original string, and limit is an optional parameter to control the maximum number of segments. For example $str="apple,banana,orange";$arr=explode(",",$str); The result is ["apple","bana

Using std::chrono in C Using std::chrono in C Jul 15, 2025 am 01:30 AM

std::chrono is used in C to process time, including obtaining the current time, measuring execution time, operation time point and duration, and formatting analysis time. 1. Use std::chrono::system_clock::now() to obtain the current time, which can be converted into a readable string, but the system clock may not be monotonous; 2. Use std::chrono::steady_clock to measure the execution time to ensure monotony, and convert it into milliseconds, seconds and other units through duration_cast; 3. Time point (time_point) and duration (duration) can be interoperable, but attention should be paid to unit compatibility and clock epoch (epoch)

How does PHP handle Environment Variables? How does PHP handle Environment Variables? Jul 14, 2025 am 03:01 AM

ToaccessenvironmentvariablesinPHP,usegetenv()orthe$_ENVsuperglobal.1.getenv('VAR_NAME')retrievesaspecificvariable.2.$_ENV['VAR_NAME']accessesvariablesifvariables_orderinphp.iniincludes"E".SetvariablesviaCLIwithVAR=valuephpscript.php,inApach

PHP prepared statement with IN clause PHP prepared statement with IN clause Jul 14, 2025 am 02:56 AM

When using PHP preprocessing statements to execute queries with IN clauses, 1. Dynamically generate placeholders according to the length of the array; 2. When using PDO, you can directly pass in the array, and use array_values to ensure continuous indexes; 3. When using mysqli, you need to construct type strings and bind parameters, pay attention to the way of expanding the array and version compatibility; 4. Avoid splicing SQL, processing empty arrays, and ensuring data types match. The specific method is: first use implode and array_fill to generate placeholders, and then bind parameters according to the extended characteristics to safely execute IN queries.

Why We Comment: A PHP Guide Why We Comment: A PHP Guide Jul 15, 2025 am 02:48 AM

PHPhasthreecommentstyles://,#forsingle-lineand/.../formulti-line.Usecommentstoexplainwhycodeexists,notwhatitdoes.MarkTODO/FIXMEitemsanddisablecodetemporarilyduringdebugging.Avoidover-commentingsimplelogic.Writeconcise,grammaticallycorrectcommentsandu

how to avoid undefined index error in PHP how to avoid undefined index error in PHP Jul 14, 2025 am 02:51 AM

There are three key ways to avoid the "undefinedindex" error: First, use isset() to check whether the array key exists and ensure that the value is not null, which is suitable for most common scenarios; second, use array_key_exists() to only determine whether the key exists, which is suitable for situations where the key does not exist and the value is null; finally, use the empty merge operator?? (PHP7) to concisely set the default value, which is recommended for modern PHP projects, and pay attention to the spelling of form field names, use extract() carefully, and check the array is not empty before traversing to further avoid risks.

See all articles