原创 mysql 部分內容提取方法

DELIMITER $$ DROP FUNCTION IF EXISTS `Num_char_extract`$$ CREATE FUNCTION `Num_char_extract`(Varstring VARCHAR(10

原创 php-adodb-oci8po

e.g. include "adodb/adodb.inc.php"; include "adodb/adodb-errorhandler.inc.php"; // include ".adodb/adodb-csvlib.inc

原创 php header設置

//定義編碼 header( 'Content-Type:text/html;charset=utf-8 '); //Atom header('Content-type: application/atom+xml'); //C

原创 php7.1.6 安裝amqp

wget https://github.com/alanxz/rabbitmq-c/releases/download/v0.7.1/rabbitmq-c-0.7.1.tar.gz tar -xzvf rabbitmq-c-0.7.

原创 nginx-lua-001

null

原创 docker-001

null

原创 workman nohup啓動start.php

nohup php start.php start & …appending output to nohup.out …運行成功,同時把程序運行的輸出信息放到當前目錄的 nohup.out 文件中去。

原创 linux php 命令行參數

用法: php [-q] [-h] [-s] [-v] [-i] [-f ] | { [args…]} -q 安靜模式,不輸出HTTP頭 -s 將php程序文件用轉化爲彩色格式的HTML(比如保留字用綠色,函數和變量爲藍色,註釋爲

原创 linux 批量kill php進程(排除不刪除的)以及權限問題

註釋: 管道符“|”用來隔開兩個命令,管道符左邊命令的輸出會作爲管道符右邊命令的輸入。下面說說用管道符聯接起來的 幾個命令: “ps - ef”是Red Hat 裏查看所有進程的命令。這時檢索出的進程將作爲下一條命令“grep LO

原创 oracl insert into之nullif

eg. 場景,把oracle 的時間字段datetime 有原來的is not null 該爲null,而引起的sql的更改, nullif(case1,case2) 如果case1==case2 返回null(此null非p

原创 curl -get-post

get function curl_get_https($url){ $curl = curl_init(); // 啓動一個CURL會話 curl_setopt($curl, CURLOPT_URL, $url)

原创 oracle 查看字段名 所在的表

select table_name from user_tab_columns where column_name = 'field_name';

原创 php的閉包實現遞歸

eg 已知字符串的數組值轉化對應的鍵值字符串 已知數組鍵值轉化數組值字符串 function getBrandEmailList(){ return [ 1=>[ 'index'=>1,

原创 php+nginx設置上傳大小

PHP php.ini file_uploads : 是否允許通過HTTP上傳文件的開關。默認爲ON. upload_tmp_dir : 文件上傳至服務器上存儲臨時文件的地方,如果沒指定就會用系統默認的臨時文件夾. upload_

原创 mysql 常用命令

導出數據和表結構: mysqldump -u user_name -p pwd db_name > db_name.sql 只導出表結構 mysqldump -u user_name -p pwd -d db_name >