Technical NotesTotal 64 articles

Centos, Ubuntu, Windows, Luinx system use
PHP xml data creation and reading-Small Seven Notes

PHP xml data creation and reading

PHP xml data creation and reading
2 years ago
018915
PHP to get ip, browser, operating system information-Small seven notes

PHP to get ip, browser, OS information

Get ip, OS, browser information
Making Your First WordPress Website - Simple Getting Started Tutorial - SevenNotes

Making Your First WordPress Website - A Simple Tutorial for Getting Started

First, what is wordpress Quickly learn to make your first WordPress website , WordPress is based on PHP and MySQL. using WordPress, users can easily create and maintain personal or commercial websites, blogs, e-commerce sites, WordPress user interface friend...
PHP operation directory or file common methods-Small seven notes

PHP common methods to manipulate directories or files

1, convert \ to / /** * Convert \ to / * * * @param string $path path * @return string path */ function dir_path($path) { $path = str_replace('\\', '/', $path); if(substr($path, -1) ! = '/'...
php session and cookie-Small Seven Notes

php session vs cookie

1, set session /** * set session * @param String $name session name * @param Mixed $data session data * @param Int $expire timeout(sec) */ function set _session($name, $data, $expir...
2 years ago
027015
Free Remote Desktop Software - Free Safe and Smooth Remote Connection to Computer Mobile Phone - Xiaoqi Notes

Free Remote Desktop Software - Free Safe and Smooth Remote Connection to Computer Mobile Phone

1, ToDesk ToDesk remote control software is a stable and smooth remote control computer cell phone connection software, remote desktop office, remote assistance operations and maintenance. Using end-to-end encryption, so that every remote access is safe and reliable. 2, RayLink RayLink remote control software, for individuals and ...
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 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 ...
PHP Get Remote Image Display (Remote 403) - Xiaoqi Notes

PHP Get Remote Image Display (Remote 403)

PHP Get Remote Image Display (Remote 403)
2 years ago
020314
WordPress using Redis cache (Redis Object Cache plugin) to optimize the performance of access - Xiaoqi Notes

WordPress using Redis cache (Redis Object Cache plugin) to optimize access performance

Redis Object Cache A persistent object caching backend powered by Redis. Supports Predis, PhpRedis (PECL), Relay, replication, sentinels, clustering, and WP-CLI. Rewritten for raw performance 100% WordPress API compatible...
2 years ago
030114
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 Simple Generation of Random Numbers, Strings - Xiaoqi Notes

PHP Simple Generation of Random Numbers, Strings

1. Generate random string /** * Generate random string * * @param int $length Output length * @param string $chars Optional , default is 0123456789 * @return string string */ function random( $length, $chars ...