Instance resolution: Migrating from an ASP of IIS to Apache PHP

Source: Internet
Author: User
Tags apache php iis sql server access

Currently in the Web server Software market, open source Apache server occupies 60% of the market share, while Microsoft free bundled in the operating system of IIS ranked second, its market share of 31%, in general, the current Web server Software market has been divided by Apache and IIS.

Generally, performance is generally recognized Apache performance than IIS, although the operational management interface of IIS is very easy to use, but the migration from the IIS platform to the Apache platform is still the trend, today I introduced several from the ASP to convert to Apache PHP methods.

Simulate running ASP through Plug-ins

Through some of the company's products, directly to the IIS ASP code running in the Apache environment, the main products currently:

Apache::asp http://www.apache-asp.org/

Convert ASP to PHP via program

ASP and PHP are easy-to-use Web scripting languages, and there are a number of third-party programs that can convert ASP to PHP, such as free asp2php.

Asp2php is a conversion program to convert ASP to PHP, similar to the conversion program Chilisoft, instantasp and free ASP, currently asp2php can convert most of the ASP program, however, there are some bugs in the conversion process, You need to manually adjust the source code.

Invoke COM using Windows environment

If you use the Windows + Apache environment, the database can still use Access or SQL Server databases, and you can use PHP to create ADODB COM components directly using their commands, calling methods exactly the same as in ASP, sample code as follows:

The following are the referenced contents:

$conn =new com ("adodb.connection");

$conn->open ("Driver=microsoft Access Driver (*.mdb);d bq=member.mdb");

$rs = $conn->execute ("SELECT * FROM TableName");

while (! $rs->eof) {

$f = $rs->fields ("username");

Echo $f->value;

$rs->movenext ();

}

$rs->close ();

$conn->execute ("Update tablename set username= ' Williamlong '");



Related Article

Alibaba Cloud 10 Year Anniversary

With You, We are Shaping a Digital World, 2009-2019

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.