PHP_GLOBAL

PHP_GLOBAL
<?php
    session_start();
    error_reporting(0);
    header("content-type:text/html; charset=gb2312"); 
    define(‘XXCMS_ROOT‘, str_replace("\\", ‘/‘, substr(dirname(__FILE__), 0, -7)));
    $http_ref=isset($_SERVER[‘HTTP_REFERER‘]) ? $_SERVER[‘HTTP_REFERER‘] : ‘‘;
    set_include_path(XXCMS_ROOT.‘lib/‘);
    require_once(XXCMS_ROOT."include/config.php");
    require_once("Mysql.Class.php");
    require_once("Page.Class.php");
    
    //实例数据库对象
    $db=new mysql($mydbhost,$mydbuser,$mydbpw,$mydbname,$conn,$mydbcharset);
?>
PHP_GLOBAL

PHP_GLOBAL

上一篇:HTML5 一秒钟文本框变语音识别[Chrome11+]


下一篇:转: ajax跨域之JSONP