Win98 builds debugging ASP, Perl, PHP three environments

zhaozj2021-02-08  215

Win98 builds debugging ASP, Perl, PHP three environments

In order to debug the programming environment of the three scripts, you must install the PWS that Microsoft comes with Win98 issuance.

(Personal Web Server) Personal Web Server (in the Add-ONE directory of the Win98 CD).

1, install PWS

When installing, select a custom installation, in the subcomponents of the Personal Web Server (PWS), double-click "Document", then select "AVTIVE Server Pages" asp, continue. After installation, restart. At this point, an icon appears in the lower right corner in the taskbar, right-click, and determine the service. Then open the IE browser, in the address bar, enter "127.0.0.1", IE the IE browser starts accessing PWS.

2, debugging of ASP scripts

Enter the wwwroot directory where PWS is installed, create a Test.asp file, the content is as follows:

<% = DATE ()%>

The procedure between <% and%> After the PWS is explained, its program code does not pass it to the browser, so it is protected, which is the characteristics of embedded scripts. Date () is a function of requesting the system date. Enter "127.0.0.1/test.asp" in the address bar in the IE browser to return to the IE browser.

3, debugging of Perl scripts

First install the Perl for Win32 or ActivePerl, then modify the system registry.

Enter "regedit" point in the run window, go to

HKEY_LOCAL_MACHINESYSTEMCURRONTCONTROLSETSERRVICESW3SVCPARETERSSCRIPT MAP

Add a string value to the right window of the registry, name ".pl" or ".cgi", the key value is named

c: perlbinperl.exe% s

^^^^^^^^^^^^^^^^^^^^^ -------------- install the path to install the Perl.

Restart your computer, enter the wwwroot directory where PWS is installed, create a Test.pl file, as follows:

#! c: perlbinperl

Print "Content-Type: TEXT / HTMLNN";

Print " ";

Print "Perl Script OK! N";

Print " ";

Double-click the server icon in the right of the taskbar. In the Personal Web Manager, click Advanced, click Programming Properties, and hook in the "Perform" option. Enter "127.0.0.1/test.pl" in the address bar in the IE browser is "Perl Script OK!" Means that Perl debugging is successful!

4, PHP script debugging

First install the PHP3 for Win32, then modify the system registry.

Enter "regedit" point in the run window, go to

HKEY_LOCAL_MACHINESYSTEMCURRONTCONTROLSETSERRVICESW3SVCPARETERSSCRIPT MAP

Add a string value in the right window of the registry, name ".php" or ".php3", the key value is named

C: php3php.exe% s% s

^ ^^^^^^^^^^^^^^ -------------- install the path to the PHP3.

Go back to

HKEY_CLASSES_ROOT

New primary key ".php3" or ".php" Re-create the primary key "shell" and then create the primary key "open" and create the primary key "command", double-click "Default" in the right window, the key value is C: php3php.exe -q %1

^ ^^^^^^^^^^^^^^ -------------- install the path to the PHP3.

Restart your computer, enter the wwwroot directory where PWS is installed, create a Test.php3 file, as follows:

Echo 'PHP3 Script OK!';

?>

Double-click the server icon in the right of the taskbar. In the Personal Web Manager, click Advanced, click Programming Properties, and hook in the "Perform" option. Enter "127.0.0.1/test.php3" in the address bar in the IE browser is "PHP3 Script OK!" Means that PHP3 debugging is successful!

So far, your PWS can debug three different scripting languages, haha ​​(should be drummed).

转载请注明原文地址:https://www.9cbs.com/read-3398.html

New Post(0)