PHP code queried by whois
Use the following function to obtain the complete details of any domain name user.
Function whois_query ($ domain ){
// Fix the domain name:
$ Domain = strtolower (trim ($ domain ));
PHP simple image verification code implementation
// The first code generates a random image ------ code2.php
// Enable session to save the generated content
Session_start ();
$ Table = array (
"Pic0" =>
PHP time processing functions
// Mktime ()
Convert date and time to unix timestamp
// Time ()
Obtains the unix timestamp of the current time.
Echo date ("Y-m-d", mktime ))."";
//
Php generates tag cloud based on word frequency
Given a piece of text, this code analyzes the word frequency distribution of the text and generates a tag cloud
/**
* Tag cloud demo based on word frequency
* @
Definitions of common PHP header
Header ('http/1.1 200 OK '); // OK for normal access
Header ('http/1.1 404 Not Found '); // notifies the browser that the page does Not exist
Header ('http/1.1 301 Moved
Php checks whether the browser is a mobile device
This code can be used to check whether users are using mobile devices to browse the web page.
$ Mobile_browser = '0 ';
If (preg_match ('/(up. browser |
Object-oriented mysql database operations php class
Class database {
Var $ host = NULL;
Var $ username = NULL;
Var $ password = NULL;
Var $ databaseName = NULL;
Var $ link = NULL;
Var $
Php numeric to Chinese character amount
/**
* Convert numbers to Chinese
* @ Param string | integer | float $ num target number
* @ Param integer $ mode [true: Amount (default), false: Normal number]
*
Php dynamic processing of images and output display
Php dynamically changes the image size and outputs the image. use the following address when outputting the image:Image_resize.php? Img‑image.jpg & w = 150 & h = 150 & constrain = 1W and h
Php uses GD to create a thumbnail that maintains the aspect ratio
/**
* Create a thumbnail image from $ inputFileName no taller or wider
* $ MaxSize. Returns the new image resource or false on error.
* Author:
Php does not break the word truncation substring
Php does not break the word truncation substring
/*
Snippet (phrase, [max length], [phrase tail])
Snippetgreedy (phrase, [max length before next space], [phrase tail])
PHP watermarks images in different locations based on the Color Field
PHP watermarks images in different locations based on the Color Field
Function add_wm ($ nmw_water, $ src_file, $ output_file, $ x, $ y ){
If (file_exists
MySQL addition, deletion, modification, and query tools PHP class
In the past, the development project did not use a framework. it is a useful mysql tool class for object-oriented development.
Header ("content-
PHP web page capture
Header ('content-Type: text/html; charset = utf-8 ');
/**
* A class used to capture images
*/
Class download_image {
Public $ _ save_path = NULL; // save path
Remove BOM documents from PHP
// Remove the UTF-8 boms
// By magicbug at gmail dot com
If (isset ($ _ GET ['dir']) {// Directory of the file to be removed. if no parameter is set, the current
The cell phones of network administrators are amazing: One-click fault reporting and ticket O & m it systems
The cell phones of network administrators are amazing: One-click fault reporting and ticket O & m it systemsIT operation and
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service