|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /home/pathumthani_integration/integration/config/ |
Upload File : |
<?
session_start();
###################################################################
## CLASS AND FUNCTION
###################################################################
## Version : 200912XX (001)
## Created Date : 2009-12-xx xx:xx
## Created By : Mr.TANAPAT TABOONDEE (JINGJOBOY)
## E-mail : tanapat@sapphire.co.th
## Tel. : 08-9999-5650
## Company : Sappire Research and Development Co.,Ltd. (C)All Right Reserved
###################################################################
##กำหนด ค่าของ ที่อยู่โปรแกรม
define('DIR_PROGRAM', 'D:/Appserv/www/face_access');
##URL หลัก ของ โปรแกรมs
define('URL_APPLICATION', 'http://127.0.0.1/face_access');
##ชื่อ โปรแกรม * จำเป็นต้องสำพันกับชื่อโฟเดอร์ ของ แอปด้วย
define('NAME_APPLICATION', 'face_members');
## เรียกไฟล์ define ที่จำเป็น
## ไฟล์ ตัวแปร define ที่สร้าง ใหม่ ให้เอาไปไว้ในโฟเดอร์ config -> NAME_APPLICATION *ตัวอย่าง | config/face_members |
## ถ้ายังไม่มีโฟเดอร์ ให้สร้างโฟเดอร์ขึ้นมาใหม่
include(DIR_PROGRAM."/config/defineDatabase.php"); // กำหนดค่า connect ฐานข้อมูล
include(DIR_PROGRAM."/config/defineTable.php"); // สร้างตัวแปร ชื่อตารางต่างๆ
include(DIR_PROGRAM."/config/defineApplication.php"); // เรียกไฟล์ ตัวแปร สำหรับ application มาใช้งาน
include(DIR_PROGRAM."/common/classIndex.php"); // เรียกไฟล์ class php ของส่วนกลาง มาใช้งาน
// Include ezSQL core
include_once DIR_PROGRAM."/common/classDB/shared/ez_sql_core.php";
// Include ezSQL database specific component
include_once DIR_PROGRAM."/common/classDB/mysql/ez_sql_mysql.php";
// Initialise database object and establish a connection
// at the same time - db_user / db_password / db_name / db_host
// หากต้องการคอนเน็ตไปที่ด้าต้าเบสก้อนอื่น ให้สร้างไฟล์ define สำหรับ App ขึ้นมาใหม่
$sp = new classSapphire();
$face = new classFaceMember();
$db = new ezSQL_mysql(DB_SERVER_USERNAME,DB_SERVER_PASSWORD,DB_DATABASE,DB_SERVER);
?>