Technical Notes

Centos, Ubuntu, Windows, Luinx system use
PHP checks whether a pure number - Seven Notes

PHP checks if the number is a plain number

The first: directly use a function, is_numeric() This function is to detect whether the parameter is a number, if so, return true, if not, return false, for example: is\_numeric( 'abcd123' ) ordie('the provided parameter is not a number'); The second ...
PHP Date, Time, Byte Conversions - Xiao Qi Notes

PHP Date, Time, Byte Conversion

1, convert bytes to other units (Gb, Mb, etc.) 2, time conversion (convert seconds to time) /** * Function dataformat * Time conversion (convert seconds to time) * @param $n INT time */ function dataformat($n) { $hours = f ...
Windows version of WeChat double open & multi-open tutorial - Xiaoqi Notes

WeChat for Windows Double & Multi-open Tutorial

1.Win + R keys, in the Run enter cmd, enter 2.Copy the following content input to the cmd input box, enter, need to open more than a few on the input a few times (each time after the input need to enter) start C:\'Program Files (x86)'\Tencent\WeChat\WeChat.exe ...
3 years ago
02601
PHP to build hierarchical (tree) arrays-Small Seven Notes

PHP builds hierarchical (tree) arrays

PHP builds hierarchical (tree) arrays
2 years ago
02599
PHP to get the image in the text content-Small seven notes

PHP to get the image in the text content

PHP to get the image in the text content
2 years ago
02558
Cell phone type access judgment-Small Seven Notes

Cell phone type access judgment

1. determine if it is mobile access ** * determine if it is mobile access * @return boolean */ function cmf_is_mobile() { if (PHP_SAPI ! = 'cli') { static $cmf_is_mobile; if (isset($cmf_is_mobile)) return $cmf...
2 years ago
02545
PHP CURL manipulation - Seven Notes

PHP CURL operations

The CURL class implements a wrapper around the PHP Curl extension, using instances of this class to enable remote access. To use this module you need to enable the Curl extension. 1, initiate get request function get_url($url) { $ch = curl_init(); $header[] = ''; curl_setop...
2 years ago
024615
PHP XML Encoding - Seven Notes

PHP XML encoding

PHP XML encoding
2 years ago
024413
PHP input() receive data (get,post, etc.) - Xiaoqi Notes

PHP input() to receive data (get,post, etc.)

PHP input() to receive data (get,post, etc.)
2 years ago
023913
PHP prints various types of data, debugging programs - Xiaoqi Notes

PHP prints various types of data, debugging programs

PHP prints various types of data, debugging programs
2 years ago
02356
Powerful php file upload class-Small seven notes

Powerful php file upload class

Powerful php file upload class
2 years ago
023514
php Extract HTML articles in the image address class-Small seven notes

php Extract image addresses from HTML articles class

php Extract image addresses from HTML articles class