原创 post get delete put 請求

function postCurl($url,$body,$header,$type="POST"){ //1.創建一個curl資源 $ch = curl_init(); //2.設

原创 通過js 存取cookie

//存cookie function setCookie(name,value) { var Days = 30; var exp = new Date(); exp.setTime(exp.getTime() + Days*24

原创 推薦一個畫圖工具

https://www.processon.com

原创 Python 學習 廖雪峯

http://www.liaoxuefeng.com/wiki/0014316089557264a6b348958f449949df42a6d3a2e542c000

原创 北京車管所 與 換領駕駛證過程

http://dz.bjjtgl.gov.cn/dzfw/trafficHeadBZ/Map/trafficHead5.jsp 剛換完,趕快分享給大家。我的駕照是外地的,原本是2017年1月12號到期的,種種原因一直拖到1月24號

原创 js 加密

//base 64 jiami <!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title>base64加密</title> <script type="text/jav

原创 數組根據一個字段排序

function sort_list($list, $field, $count, $sortby = 'desc'){ $refer = $resultSet = array(); foreach

原创 php 文件加密

//第一種隨機字符加密 function RandAbc($length = "") { // 返回隨機字符串 $str = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnop

原创 redis 實現消息提醒與歷史消息

實現方法 分爲四個文件 核心文件 <?php class redis_SinglePullMessage { private $redis = ''; #存儲redis對象 /** * @desc

原创 websocket 簡易聊天

//通過命令行執行php文件 如 php -q index.php // php -S localhost:8000 瀏覽器訪問index.html //index.html <!DOCTYPE html> <h

原创 php 多維數組排序

<?php $arr = array( '0' => array( 'num1' => 3, 'num2' => 27 ), '1' => array(

原创 推薦一個php在線測試地址

www.shucunwang.com/RunCode/php/

原创 jQuery.getScript 跨域請求

jQuery.getScript("http://127.0.0.1:58891/teacher_client/?command=check");

原创 base64轉圖片 圖片轉base64

<?php //圖片轉成base編碼 $file="images/2.gif"; $type=getimagesize($file);//取得圖片的大小,類型等 $file_content = base_encode(

原创 一個各種牛逼神器的網站

http://tool.lu/article/