原创 把一個把正整數分解爲素數乘積

程序流程圖: 代碼實現: $num = 100; // 給定正整數 $first = 1; $factor = 2; $res = []; $str = ''; while ($num > 1) { if ($num % $

原创 大文件上傳到七牛雲

php 獲取上傳到七牛雲的上傳token值 HTML頁面內容: <script> uploader = Qiniu.uploader({ runtimes: 'html5,flash,html4',

原创 php面試題-待完善

面試總結 (一)索引 一、 索引類型 全文索引:fulltext 目前只有MyISAM引擎支持,其可以在創建表、更改表、創建索引使用, 目前只有char、varchar、text列上可以創建全文索引。 數據量較大時,現將數據放入一

原创 thinkPHP3.2 、thinkPHP5 結合workerman + Redis 實現賬號單點登錄

thinkPHP3.2  與workerman 結合 首先下載wokerman,放到TP項目下面的ThinkPHP/Library目錄,並命名爲Workerman 除Constants.php以外的所有php文件改爲.class.php後

原创 nginx 設置僞靜態

 在網站域名.conf 文件中加上下面代碼既解決: location / { index index.php index.html error/index.html; if (!-e $request_filena

原创 webupload 實現大文件分片上傳

廢話不多說,直接上例子:   html代碼: <div class="layui-form-item" > <label for="" class="layui-form-label">選擇文件</label>