Give full play to the power of language-integrating PHP and ASP

Source: Internet
Author: User

I started to use php during project development. When enjoying the flexible functions of php, I also encountered some problems, such as the php ODBC interface connection "remote oracle, it is to report that you do not have the service name of the "m" NS. After some exploration, you still have not found the answer to the question!
In a hurry, come up with a clever plan. Let's take a look:
I used ASP to connect to a remote database. Of course everything is okay. I think of my previous experiences with floating charts. Why not use ASP floating charts to access the remote Oracle code. The method is as follows:
(1 ). Create on the PHP page
<DIV id = "iframeASPDiv" style = "hidden">
<Iframe id = "iframeASP" src = "./inc/XXX. asp"> </iframe>
</DIV>
(2) Add the code for accessing remote Oracle to the./inc/XXX. ASP page.
For example, set conn = Server. CreatObject ("ADODB. Connection ")...
...
(3) place the following code in the./inc/XXX. ASP script position:
<Script language = "JavaScript">
Parent. XXXID. value = "<% = YYY %>"; // = access the parent window Element
Parent. XXXXID. innerHTML = "<% = ZZZ %> ";
</Script>
The above method is my own experience, but it serves as a reference. Similarly, we can use
The major integration of PERL, ASP +, CGI, JSP, and PHP. First, the advantages of each language can be used to make up for the shortcomings. The second is to provide some ideas for web page modularization. When developing large projects, everyone can cooperate. I will continue to dedicate my new skills to the mixed programming of scripts!
 

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.