-
Notifications
You must be signed in to change notification settings - Fork 0
/
infosystem.php
32 lines (31 loc) · 1.12 KB
/
infosystem.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
/* FileName="Connection_php_direct.htm" "driver=org.gjt.mm.mysql.Driver|url=jdbc:mysql://localhost/infosystem|uid=root|pword="
Type="JDBC"
Catalog=""
Schema=""
HTTP="false"
*/
if(!isset($PHP_SELF)){
$PHP_SELF=getenv("SCRIPT_NAME");
}
if (!isset($QUERY_STRING)){
$QUERY_STRING="";
}
if (!isset($REQUEST_URI)){
$REQUEST_URI=$PHP_SELF;
}
$MM_infosystem_HOSTNAME = "localhost";
$MM_infosystem_DBTYPE = "mysql";
$MM_infosystem_DATABASE = "fpdd";
$MM_infosystem_USERNAME = "root";
$MM_infosystem_PASSWORD = "";
ADOLoadCode($MM_infosystem_DBTYPE);
$infosystem=&ADONewConnection($MM_infosystem_DBTYPE);
if($MM_infosystem_DBTYPE == "access" || $MM_infosystem_DBTYPE == "odbc"){
$infosystem->Connect($MM_infosystem_DATABASE, $MM_infosystem_USERNAME,$MM_infosystem_PASSWORD);
} else if($MM_infosystem_DBTYPE == "ibase") {
$infosystem->Connect($MM_infosystem_HOSTNAME.":".$MM_infosystem_DATABASE,$MM_infosystem_USERNAME,$MM_infosystem_PASSWORD);
} else {
$infosystem->Connect($MM_infosystem_HOSTNAME,$MM_infosystem_USERNAME,$MM_infosystem_PASSWORD,$MM_infosystem_DATABASE);
}
?>