Php uses the request header to obtain the remote Image size
$ Fp = fsockopen ("www.baidu.com", 80, $ errno, $ errstr, 30 );
If ($ fp ){
// Set the request to HEAD.
$ Out = "HEAD/img/baidu_sylogo1.gif
The entire process of installing phpgd Library in yum in linux
[Root @ jbxue ~] # Yum install php-gd *
Setting up Install Process
Setting up repositories
Base 100% | ===================================|
Code for reading files by row (implemented in php and c)
/**
* Reading files by row
* @ Param string $ filename
* @ Site bbs.it-home.org
*/
Function readFileByLine ($ filename)
{
$
The PHPGD Library dynamically generates the line chart instance code
/**
* The php GD library generates line charts, bar charts, and pie charts.
* By bbs.it-home.org
*/
$ Img_gao = 170;
Simple example of removing 3D php arrays
// Create an empty array.
$ Tmp_array = array ();
$ New_array = array ();
// 1. loop all rows. ($ val is a row)
Foreach ($ my_array as $ k => $ val )
Two example of removing repeated data from the array using php
/**
* Remove repeated data from the array
* By bbs.it-home.org
**/
$ Input = array ("a" => "green", "", "red", "B" => "green",
The phpdate function is used to format the output time in a specified range.
/**
* The date function is used to format the time in the specified output range.
* By bbs.it-home.org
*/
$ Stand = "201
Php calculates the specified folder information (number of folders, number of files, folder size)
// Format the size of the output directory. unit: Bytes, KB, MB, and GB.
// You can also count the number of
Simple example code of php mathematical functions
A small example of php mathematical functions -bbs.it-home.org
Echo abs (-1); // returns the absolute value function.
Echo"####
Analysis of Program Design Principles of intra-group messaging
Php_user_info
--------------------
Uid username password
User id, user name, and password
--------------------
2. the table that saves
Function code used by php to determine character sets and transcode
Function safeEncoding ($ string, $ outEncoding = 'utf-8 ')
{
$ Encoding = "UTF-8 ";
For ($ I = 0; $ I
{
If
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