⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 commanvar.php

📁 一个php oracle连接的类
💻 PHP
字号:
<?php
 session_start();
// Database Setup
$HOST="HOST NAME";
$PORT="PORT"; // Default is 1521
$USER_NAME="USERNAME";
$PASSWORD="PASSWORD";
$SERVICE_NAME="SCHEMA NAME"; // 

define("ORCL_HOST",$HOST);
define("ORCL_USER_NAME",$USER_NAME);
define("ORCL_PASSWORD",$PASSWORD);
define("ORCL_SERVICE_NAME",$SERVICE_NAME);


/*
The Below Code is used to avoid the user to access the direct page
for eg. if you set $ref=on in your page then the page must have to referer from another other wise it comes error 
suppose the page name is abc.php you set $ref=on for this page then it will not direct access it must have to be referer from another page 


*/
$referer=@$_SERVER['HTTP_REFERER'];
if($ref=="on") {
	if(empty($referer)) {
		die("Sorry You come the Wrong Place");
	}
}

// Error On 
error_reporting(E_ALL);
@ini_set('display_errors', '1');
// End of Error
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -