摘要:
打开对应站点的conf配置文件,主要配置代码如下: location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { valid_referers none blocked *.XXXXX.com;//许可的网站 if ($invalid_referer) { rewrite 阅读全文
摘要:
错误信息: Swift_TransportException Connection could not be established with host smtp.126.com :stream_socket_client(): SSL operation failed with code 1. O 阅读全文
摘要:
使用timedatectl可以进行如下常见操作 1.查看当前时间/日期/时区:timedatectl或者timedatectl status 2.查看所有可用时区:timedatectl list-timezones 3.设置时区:timedatectl set-timezone “Asia/Sha 阅读全文
摘要:
1.创建用户 #test表示你要建立的用户名,后面的123456表示密码, #localhost限制在固定地址localhost登陆 CREATE USER test@localhost IDENTIFIED BY '123456'; 2.授权用户 授权格式:grant 权限 on 数据库.* to 阅读全文
摘要:
//连接本地的 Redis 服务 $redis = new Redis(); $redis->connect('127.0.0.1', 6379); $redis->auth('123456'); /*********************Key(键)*********************/ 阅读全文
摘要:
$array = array( 'Name'=>'络恩', 'Age'=>24); $post=my_json_encode($array); // 这个函数是判断版本,如果是搞版本的则直接用版本带的函数处理,如果不是则用递归处理function my_json_encode($p){ if (PH 阅读全文
摘要:
PHP配置文件: [global]pid = /run/php-fpm/php-fpm.piderror_log = /var/log/php-fpm/php-fpm.loglog_level = notice[www] listen = /dev/shm/php-cgi.sock listen.b 阅读全文
摘要:
今天脚本了里写了一句话: window.close() 但是浏览器却报了警告提示:Scripts may close only the windows that were opened by it,而且也没有能够关闭我想关闭的页面,怎么办呢?找万能的度娘,搜到的解决方案有: (1) window.o 阅读全文
摘要:
/** * 时间格式化 * @param string $dateformat 时间格式 * @param int $timestamp 时间戳 * @param int $timeoffset 时区偏差 * @return string */ function qgmdate($dateforma 阅读全文
摘要:
手机app打开的web在,打开chrome浏览器 <a href='intent://#Intent;action=android.intent.action.VIEW;scheme=googlechrome://navigate?url=https://www.baidu.com/?a=n&b=c 阅读全文