1 Star 0 Fork 108

littleboyWangzi / WCMS

forked from 大灰狼 / WCMS 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
weixin.php 813 Bytes
一键复制 编辑 原始数据 按行查看 历史
大灰狼 提交于 2015-08-05 12:27 . 改进微信配置
<?php
/**
* 微信端入口
*/
session_start ();
@header ( "Content-type: text/html; charset=utf-8" );
//关闭错误提示 0关闭 1开启
ini_set ( 'display_errors', 1 );
error_reporting ( E_ALL ^ E_NOTICE ^ E_STRICT ); //php5.4报错 E_STRICT
//配置时区
date_default_timezone_set ( 'Asia/Shanghai' );
define ( 'ROOT', realpath ( dirname ( __FILE__ ) ) . DIRECTORY_SEPARATOR );
define ( 'APP', './app/' );
//配置加载路径
set_include_path ( implode ( PATH_SEPARATOR, array (realpath ( './lib' ), realpath ( './config' ), realpath ( './lang' ), get_include_path () ) ) );
//是否捕获fatal error:non-object错误
define ( 'NONOBJECT', 1 );
require_once 'App.php';
$app = App::getInstance ();
$app->preDispath ();
//define your token
$wechatObj = new WeixinService ();
$wechatObj->run ();
?>
PHP
1
https://gitee.com/littleboyWangzi/WCMS.git
git@gitee.com:littleboyWangzi/WCMS.git
littleboyWangzi
WCMS
WCMS
master

搜索帮助