Introduction: This is an Example Analysis: This is a detailed page for migrating from ASP of IIS to PhP of Apache. It introduces PHP, related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 323130 'rolling = 'no'>
Currently, in the website server software market, open-source Apache servers account for 60% of the market share, while Microsoft ranks second among the free-bound IIS servers in the operating system, with a market share of 31%, in general, the current website server software market has been divided by Apache and IIS.
Generally, the performance of Apache is better than that of IIS. Although the IIS operation management interface is very easy to use, it is still the trend of the times to migrate from IIS platform to Apache platform, today, I will introduce several methods for converting IIS ASP to Apache PHP.
Simulate ASP running through plug-ins
Through some company products, the IIS ASPCodeIt runs normally in the Apache environment. The main products currently include:
Apache: ASP http://www.apache-asp.org/
PassProgramConvert ASP to PhP
ASP and PHP are both easy-to-use web scripting languages. Currently, some third-party programs can convert ASP to PhP, such as asp2php for free.
Asp2php is a conversion program that converts ASP to PhP. Similar conversion programs include chilisoft, instantasp, and free ASP. Currently, asp2php can convert most ASP programs. However, there are some bugs in the conversion process, manualSource code.
Use Windows to call com
If you are using a Windows + Apache environment, the database can still use access or SQL Server database. After using PHP to create the COM component of ADODB, you can directly use its command, the calling method is exactly the same as that in ASP. The sample code is as follows:
Reference content is as follows:
|
Reference content is as follows:
$ Conn = new COM ("ADODB. Connection ");
$ Conn-> open ("driver = Microsoft Access Driver (*. mdb); DBQ = 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 = 'William long '"); |
More articles about "instance parsing: migrating from ASP of IIS to PhP of Apache"
Love J2EE follow Java Michael Jackson video station JSON online tools
Http://biancheng.dnbcw.info/php/323130.html pageno: 16.