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.
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:
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 '"); |