原创 php 接收jQuery通過Ajax上傳圖片
1.upload.html <html> <head> <meta charset="utf-8"> <script src="jquery.min.js"></script> </head> <style> /*.
原创 啓動MySQL:Job for mysqld.service failed because the control process exited with error code
1、查看日誌 [ERROR] InnoDB: mmap(137428992 bytes) failed; errno 12 2、執行命令:$ free 很明顯是swap內存的問題了,swap內存爲0,添
原创 contos7安裝nginx遇見的問題
1、error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory
原创 ubuntu搭建lamp環境
0、ifconfig -a // 1、sudo apt undate // 獲取最新資源包 2、sudo apt upgrade // 本機軟件全部更新 3、sudo apt dist-upgrade // 本機系統軟件更新 //安
原创 linux環境redis擴展
1、進入pecl.php.net搜索redis 2、$ wget https: http://pecl.php.net/get/redis-5.0.0.tgz # 下載擴展包 3、$ tar zxvf redis-5.0.0.tgz #
原创 service unavailable
關於服務器linux系統安裝php72出現的問題 1. 卸載低版本的php,安裝php72並安裝配置文件 yum remove php* # 刪除php yum install epel-release # 安裝epel yum in
原创 瀏覽器訪問php文件直接下載
在nginx.conf文件中查看是否有 location ~ \.php(.*)$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index ind
原创 starrtc的使用
1、WebSocket connection to 'wss://ip:端口/' failed: Error in connection establishment: net::ERR_CONNECTION_TIMED_OUT
原创 Uncaught ReferenceError: xxx is not defined at HTMLTableRowElement.onclick
// 正確的寫法 append('<div onclick=goodsDetail('+data[k].id+')></div>')這樣則不會 //這樣寫就會自動觸發goodsDetail事件 append('<div onclic
原创 tp使用過程中遇到的難題
1、tp 執行事務 Db::transaction(function () { Db::table('think_user')->find(1); Db::table('think_user')->delete(1); }); 事務需將
原创 PHP基礎知識彙總
1、變量命名規則 1、$標示 2、字母、下劃線開頭 3、字母、下劃線、數字 4、變量的名稱是區分大小 $name != $NAME 5、駝峯命名法 小駝峯 6、見名知意 2、聲明常量 只是不使用$符號,其他和變量相同。只能是標量或者數組才
原创 thinkPHP5框架解讀
一、入口文件 //public/index.php //定義應用目錄 define('APP_PATH',__DIR__.'/../application/'); //加載框架引導文件 require __dir__.'/../thi
原创 PHP 數組函數API
1. 將數組中的所有鍵名修改爲大寫或小寫 語法:array array_change_key_case(array $array[, int $case=CASE_LOWER]) 參數:case可以在這兩用兩個常量,CASE_UPPER或
原创 ThinkPHP
一、準備工作 1. 在官網下載壓縮包,然後解壓 2. 在網站根目錄創建文件夾,然後將解壓後的文件存儲到根目錄下 3. 啓動入口文件,通過瀏覽器打開網站根目錄下的index.php文件。 // 應用入口文件 // 檢測PHP環境 if(
原创 MySQL數據庫
一、數據庫基礎 1. 連接數據庫 mysql --host=localhost --user=root --password test mysql -h localhost -u root -p test; mysql -u root -