Look at a little bit rrdtool how to draw, grammar is really cumbersome, but not too difficult. When executed at the command line, the output is required to be a file each time. We want to do an application, be able to dynamically generate charts,
This note only extracts the parts of PHP that need to be noticed, about operators, simple judgments, and so on.
1 string
1.1 strlen () function to calculate the length of a string
1.2 strops () function to retrieve strings or characters within
PHP Regular expression: match a specific number, commonly introduced, hope to have a harvest.
^[1-9]d*$//Match positive integer
^-[1-9]d*$//Match negative integer
^-? [1-9]d*$//Match integer
^[1-9]d*|0$//matches non-negative integers (positive
Get more information about the IP with the highest number of connections
$top = 10;
Get details of IP
$get _location = true;
Reverse IP, used to get spiders, slow after opening
$reverse = FALSE;
$reverse = TRUE;
Ini_set (Extension_dir,dirname
Many Web site access Statistics program provides "routing" information, customer access to statistical information from which visitors learned from what site to connect. The so-called "route", in fact, is where someone clicked on your site link,
Note that iterators are a better abstraction than object sets, because we can let infiniteiterators,norewinditerators and so on, without being consistent with normal array arrays, so iterator lacks functions such as the count () function.
A complete
PHP Week Get Code:
Date ("L"); Data can be obtained in English for weeks such as Sunday
Date ("W"); This can get the numbers for weeks like 123, note that 0 is Sunday
Get Chinese Weekday:
$weekarray =array ("Day", "one", "two", "three", "four",
#1 Don't like unity? Switch to Ubuntu Gnome Classic desktop
Log out of the Unity desktop environment and select the login environment as "Classic desktop" to enter.If you like unity, but your graphics card does not give force 3D does not support,
PHP pseudo-static notation--One
Pseudo-static name: URL rewrite
Mainly for the purpose of SEO and born. (What is SEO?) You don't have to ask me that. Hehe ~ Do not understand the network SEO that is ~ ~ ~)
Method One:
Like this
1.PSD files for the Photoshop file format, the browser can not directly display, there is a need to generate a PSD file preview, Google for a few days did not find the available code, so that their own research, finally found a solution, the PSD is
void header (String string [, bool replace [, int http_response_code]])
void header (String string [, bool replace [, int http_response_code]])
The header () is used to send the HTTP header. Replace is an optional parameter that indicates whether
The last time I said a simple way to avoid GD, and then use GD to make the simplest of a "picture"-line.This time I'm going to draw straight down and say. The part that was explained in detail in the last code is not mentioned this time.
Header (
PHP arrays into object instance code, this program through the programming of the home test really run post.
$array = Array (1 + = PHP,
2 = java,
3 = + c);
$arrayobject = new Arrayobject ($array);
Var_dump
1, replace any space in the string with a$str 1 = A B C;Echo
;
;2. Replace any consecutive character m in a string with a MEcho 2:;$str 1 = ammmbmmmmcmm;Echo preg_replace ("/m+/", M, $str 1).;3. Replace any consecutive characters in a string
This document describes how to get and install Nusoap, and then provides some examples to illustrate the functionality of Nusoap, which is not a comprehensive nusoap introduction, but hopefully some PHP developers can get a good start.Nusoap is a
Author: Knight
Want in the PHP background management directly can back up the database, so think Ah think, have no idea, the beginning is to consider using PHP to access the server installed MySQL directory, such as the/usr/local/mysql/data
5. Working with the self-increment fields in a database tableFor a table with a self-increment field that needs to be loaded, that is, the table's IXF data file has an auto-increment value, you can control the self-increment field value in the load
Preface:
PHP in the operation of various types of database support, the operation of the file also has a very rich operation method, many friends now operation is still based on the file operation but sometimes in the operation of the file there is
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