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!