原创 php必備技能!![會補充]

1.解釋繼承,多態,接口, 2.抽象類和接口的區別 3.php與apache/nginx之間如何通信 深入理解PHP之:Nginx 與 FPM 的工作機制 4.數據庫連接池 5.設計模式 6.trait的理解和原理 7.修飾符的解

原创 阿里雲短信原生sdk 解決 Uncaught Error: Class ‘Aliyun\Core\Config’ not found 問題

原文鏈接:https://blog.csdn.net/qq_38125058/article/details/79162045 之前是直接composer安裝的阿里大魚,沒有發現問題。現在下了阿里的原生的短信sdk,報錯Uncaught

原创 SQLSTATE[HY000]: General error: 1390 Prepared statement contains too many placeholders

SQLSTATE[HY000]: General error: 1390 Prepared statement contains too many placeholders mysql 報錯 排查錯誤 1.寫入:mysql使用P

原创 一些很好用的php函數方法

一些很好用的php函數方法 parse_str() 函數把查詢字符串解析到變量中。 array_fill() 函數用給定的鍵值填充數組。 3.array_map 在類中的使用方法 array_map(array($this,

原创 composer報錯failed to open stream: operation failed

composer報錯 failed to open stream: operation failed The “https://packagist.laravel-china.org/packages.json” file co

原创 phpstorm debug總是debug到入口文件第一行

解決方案:打開phpstorm的設置->語言->php->debug 取消勾選 break at first line in PHP scripts

原创 關於在同一個電腦上用設置多個git ssh key需要注意的點

在同一個電腦上用設置多個ssh key需要注意的點 在克隆項目時出現這個錯誤 ERROR: Repository not found. fatal: Could not read from remote repository. P

原创 安裝composer報錯

windows安裝composer時報錯 A duplicate setting in your php.ini could be causing the problem. Program Output: PHP Warning

原创 php的redis擴展包的安裝版本地址

php的redis擴展包的安裝版本地址如下 php的redis擴展包的安裝版本地址

原创 phpexcel的一些用法--持續更新

//設置默認行高 $objPHPExcel->getActiveSheet()->getDefaultRowDimension()->setRowHeight(30);

原创 php獲取pdf中的文字

phpparser簡單易上手,經測試好用,但是我項目的pdf文件中有的文字獲取不到。 xpdf 試驗中

原创 File upload error - unable to create a temporary file in Unknown on line 0

PHP Warning: File upload error - unable to create a temporary file in Unknown on line 0 上傳文件報錯,若不是上傳文件目錄權限問題, 解決方案 去掉

原创 php 過濾敏感詞

php 過濾csv敏感詞 上代碼 function getcsv($content=''){ $csv_file='精確詞1.csv'; //讀取文件 $file=file_get_contents($csv_file); $arr

原创 一些不太常用又很好用的php函數方法

一些不太常用又很好用的php函數方法 parse_str() 函數把查詢字符串解析到變量中。 array_fill() 函數用給定的鍵值填充數組。

原创 Class '\think\db\connector\Oracle' not found的解決方法

Class ‘\think\db\connector\Oracle’ not found的解決方法 用thinkphp5.1鏈接oracle數據庫時報錯 Class ‘\think\db\connector\Oracle’ not f