首页学无止境
js 日期与时间戳互转
发布时间:2019-07-24作者:凌分类:[Js]

//日期转时间戳 function date2time(date){ return new Date(date).getTime()/1000; }
阅读全文>>在centos 安装python3
发布时间:2019-04-11作者:凌分类:[python]

https://www.python.org/downloads/release/python-373/ wget https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tgz tar -xvzf Python-3.7.3.tgz cd Python-3.7.3/ ./configure --prefix=/usr/python make &a...
阅读全文>>php 双向加密解密
发布时间:2018-11-29作者:凌分类:[PHP]

/** 用法: Secret::encrypt($str,$key); Secret::decrypt($str,$key); */ class Secret { public static $key = 'jatvsjat'; public static function encrypt($data, $key='123456') { $k...
阅读全文>>python 定时器(timer)
发布时间:2018-10-12作者:凌分类:[python]

#! /usr/bin/python3 #! -*- conding: utf-8 -*- import threading import time def fun_timer(): print(time.strftime('%Y-%m-%d %H:%M:%S')) global timer timer = threading.Timer(2,fun_timer) ...
阅读全文>>图片上传-demo-php
发布时间:2018-10-01作者:凌分类:[PHP]

<?php class UploadFile{ private $max_size = '2000000'; //设置上传文件的大小,此为2M private $rand_name = true; //是否采用随机命名 private $allow_type = array(); //允许上传的文件扩展名 private $error ...
阅读全文>>微信登录接口
发布时间:2018-09-28作者:凌分类:[PHP]

<?php error_reporting(E_ALL & ~E_NOTICE); if(isset($_GET['echostr'])){ exit($_GET['echostr']); } $app_id = 'xxxxxxxxxxxx'; $app_key = 'xxxxxxxxxxxxxxxxx'; $code = isset($_REQUEST['code']) ? $...
阅读全文>>linux php 安装scws扩展
发布时间:2018-09-25作者:凌分类:[Linux]

wget http://www.xunsearch.com/scws/down/scws-1.2.3.tar.bz2 tar xvjf scws-1.2.3.tar.bz2 cd scws-1.2.3 ./configure --prefix=/usr/local/scws make & make install ls -al /usr/local/scws/lib/libscws.la ...
阅读全文>>CentOS 7搭建VPN服务器
发布时间:2018-09-24作者:凌分类:[Linux]

1.先看看你的主机是否支持pptp,返回结果为yes就表示通过。 modprobe ppp-compress-18 && echo yes 2 .是否开启了TUN,有的虚拟机主机需要开启,返回结果为cat: /dev/net/tun: File descriptor in bad state。就表示通过。 cat /dev/net/tun 3.安装ppp , pptpd 和 iptabl...
阅读全文>>PHP 处理2038后的日期
发布时间:2018-08-29作者:凌分类:[PHP]

PHP 处理2038后的日期
阅读全文>>ssl lnmp下配置
发布时间:2018-08-29作者:凌分类:[Linux]

server { listen 80; listen 443; #listen [::]:80 default ipv6only=on; server_name www.yetyun.com yetyun.com; ssl on; index index.html index.htm index.php; root /home/wwwroot...
阅读全文>>