Win98 set up debugging asp,perl,php three kinds of environment

Source: Internet
Author: User
Tags date key php script php3 file string win32 window perl script
Perl
In order to be able to debug a programming environment with three scripts, you must install the Microsoft PWS included in the WIN98 release

(Personal Web server) Personal Web servers (in the Add-one directory of the WIN98 CD).

1. Installation PWS

When you install, select a custom installation, in the personal Web Server (PWS) subassembly, double-click Documents, and then select Avtive Server Pages, ASP, to continue. Installation is complete, restart can be. To do so, the icon appears in the lower-right corner of the taskbar and right click to determine to start the service. Then open IE Browser, in the Address bar, enter "127.0.0.1", ie browser began to visit the PWS.

2, the ASP script debugging

Enter the Wwwroot directory of the installation PWS and create a test.asp file that reads as follows:



<%=date ()%>



The program code of <% and%> is not passed to the browser, so it is protected, which is the characteristic of embedded script. Date () is a function that asks for a system date. Enter "127.0.0.1/test.asp" in the address bar of IE browser to return to the date of the system in IE browser.

3, the Perl script debugging

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

Enter the "regedit" point in the Run window to determine, go to

Hkey_local_machinesystemcurrontcontrolsetserrvicesw3svcparametersscript Map

In the right window of the registry, add a string value named ". pl" or ". CGI" with the key value named

C:perlbinperl.exe%s

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

Restart the computer and enter the Wwwroot directory where the PWS is installed, creating a test.pl file that reads as follows:



#!c:perlbinperl

print "Content-type:text/htmlnn";

print "
Print "Perl script Ok!n";

print "</body>


Double-click the server icon at the bottom-right of the taskbar, and in the Personal Web Manager, tap Advanced, and then click Programmatic Properties to tick the "execute" option. Enter "127.0.0.1/test.pl" in the address bar of IE browser to return "Perl script ok!" That means Perl debugging is successful!

4, PHP script debugging

First install PHP3 for WIN32, and then modify the system registry.

Enter the "regedit" point in the Run window to determine, go to

Hkey_local_machinesystemcurrontcontrolsetserrvicesw3svcparametersscript Map

In the right window of the registry, add a string value named ". php" or ". PhP3", and the key value is named

C:php3php.exe%s%s

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

and turn to

HKey_Classes_Root

Create a new primary key ". PhP3" or ". php" and create a new primary key "shell" and then create a new primary key "open" and create a new primary key "command", and then double-click "Default" in the right window, and the key value is

C:php3php.exe-q%1

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



Restart the computer and enter the Wwwroot directory where the PWS is installed, creating a TEST.PHP3 file that reads as follows:



?

Echo ' php3 script ok! ';

?>



Double-click the server icon at the bottom-right of the taskbar, and in the Personal Web Manager, tap Advanced, and then click Programmatic Properties to tick the "execute" option. Enter "127.0.0.1/test.php3" in the address bar of IE browser to return "PhP3 script ok!" That means PHP3 debugging success!



So far, your PWS, you can debug three different scripting languages, haha

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.