PHP in the Linux/unix to connect Oracle8 is very easy, but in the Windows platform is not easy, I have long been groping to find a reliable method, not alone,
It is now published to treat everyone. I use the development environment: Windows 98 Second Edition PHP4.04PL1 Apache 1.3.14 window version Oracle 8.05 client PHP is installed in CGI mode after the successful test. Test with the following code
$conn = Ocilogon ("CINMSIII", "CINMSIII", "(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.3.202) (PORT = 1521)" (CON Nect_data = (SID = unicom)));
$conn =ocilogon ("CINMSIII", "CINMSIII", "Cinms"), if the Oracle client is 8.1.6i, it can be used, the parameters are illuminated if ($conn!=false)
{
echo "OK";
Ocilogoff ($conn);
}
Else
echo "false";
?> about Connection parameter issues:
The connection string is set to the following:
(DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.3.202) (PORT = 1521)) (Connect_data = (SID = unicom))) PROTOCOL: Network protocol for use host: SID for database server hostname: This is generally not a problem after the instance number for the database. If your Oracle 8 client is a 8.1.6i Enterprise Edition, you can set these parameters in a connection string using the Oracle8 Net Easy Config utility.
The set connection string name is passed in as a connection string. Presumably Oracle 7.x can also use this method, because there is no environment, not tested, if you are interested can try. (Source: Viphot)
http://www.bkjia.com/PHPjc/314164.html www.bkjia.com true http://www.bkjia.com/PHPjc/314164.html techarticle PHP in the Linux/unix under the connection Oracle8 is very easy, but in the Windows platform is not easy, I after a long time to find a reliable method, dare not exclusive, is now released to treat everyone. ...