跳到主內容

PHP

【php】在 CentOS 6 安裝、設定 Oracel PDO_OCI

  在 CentOS 6 安裝、設定 Oracel PDO_OCI | 未知 (dtask.idv.tw) https://www.oracle.com/database/technolog...

大於等於小於 縮寫

lt:less than 小於 le:less than or equal to 小於等於 eq:equal to 等於 ne:not equal to 不等於 ge:greater t...

常用函數 empty isset isnull 比較

Centos7 安裝 php7.4

新增Remi repository yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm yum instal...

PHP_判斷json物件

  function isJson($string) { json_decode($string); return json_last_error() === JSON_ERR...

PHP_使用curl 上傳資料

client shell # curl 上傳資料 # {file} : 可更改,$_file 的key就會不同 # curl -X POST -F "{file}=@{檔案路徑}" {ap...

PHP_連線postgresql

安裝postgrel extenstion yum install php-pgsql -y 修改 /var/lib/pgsql/12/data/pg_hba.conf host a...

PHP_實現異步請求

PHP教程:php中使用fsockopen實現異步請求(代碼示例) (insci.cn) 《面試官別再問》PHP運用多執行緒(Multi-thread)實現非阻塞方法 | 阿宅工作日誌 (bp...

PHP_檔案相關

判斷資料夾是否存在,建立資料夾 if ( !file_exists( $dir ) || !is_dir( $dir) ) { mkdir($dir); } 遞回查詢資料夾內...

prettyPrint

function prettyPrint( $json ) { $result = ''; $level = 0; $in_quotes = false; ...

require和include的不同

include('func.php'); include 'func.php'; require('lib.php'); require('lib.php'); incl...

mac 安裝 php 7.4

mac 安裝 php 7.4 brew tap shivammathur/php brew install php@7.4 brew link --overwrite --force ph...