-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpinfo.php
executable file
·60 lines (50 loc) · 1.74 KB
/
phpinfo.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
require_once dirname(__FILE__).'/src/db/db_mysql.php';
require_once dirname(__FILE__).'/src/log/logger.php';
require_once dirname(__FILE__).'/src/message/message.php';
require_once dirname(__FILE__).'/src/friend/friend.php';
require_once dirname(__FILE__).'/src/activity/chapterMgr.php';
/*
$db = new db_mysql();
$param = array("aaaaa");
$result = $db->db_proc("proc_get_recommendFriends", $param);
var_dump($result);
$row = $result->fetch_assoc();
var_dump($row);
$row = $result->fetch_assoc();
var_dump($row);
echo chapterMgr::db_init();
header('content-type:text/html;charset=utf-8');
ini_set('display_errors',0);
ini_set('date.timezone','PRC');
error_reporting(-1);
ini_set('log_errors',1);
ini_set('error_log','G:\error\adminLogin.log');
ini_set('ignore_repeated_errors','on');
ini_set('ignore_repeated_source','on');
$to = "[email protected]";//收件人
$subject = "Test";//邮件主题
$message = "This is a test mail!";//邮件正文
//ini_set('SMTP','smtp.163.com');//发件SMTP服务器
//ini_set('smtp_port',25);//发件SMTP服务器端口
//ini_set('sendmail_from',"[email protected]");//发件人邮箱
mail($to,$subject,$message);
error_log("读发送打",1,"[email protected]");
*/
error_reporting(0);
register_shutdown_function('handleFatalPhpError');
function handleFatalPhpError() {
$last_error = error_get_last();
if($last_error['type'] === E_ERROR) {
logger::error("handleFatalPhpError:".print_r($last_error, true), "php_error");
echo response::format(ERROR_PARAMS, "php fatal error")."\n";
}
}
test();
//echo "hello world";
// phpinfo();
$redis = new redis();
$redis->connect('127.0.0.1');//连接
$ret = $redis->set('name', '123'); //设置值
echo $redis->get('name'); //取值
?>