Convert GB code to utf8,php TTF supports UTF8 encoded non-ASCII character output. After analyzing this code, we find that the mixed output image of Chinese and ASCII can be realized, which makes it more convenient for us to manipulate the image
procedure.
//###########################################################
//
For questions and comments
Roland (Alias-=: Vlieg: =-)
ICQ #78354631
Mail:vlieg@atoomnet.net
//
Nb:this script won ' t work on free hosting pages, because of the secure mode!
function | Chinese Character | string
/*--obtains the first letter of Chinese character string--*/if exists (SELECT * from dbo.sysobjects WHERE id = object_id (N ' [dbo].[ FGETPY] and Xtype in (n ' FN ', n ' IF ', n ' TF '))Drop function [dbo].
This article mainly introduces whether the PHP input is a pure digital, English, Chinese character method, involving PHP mb_strlen and strlen functions such as the use of skills, with a certain reference value, the need for friends can refer to the
-
Ping Service, blog program provides a notification mechanism for the first time to post updates to the blog to provide ping service services site, write the aggregation of the time studied
Look at the standard first.
This is a standard ping
Today's theme is Web site attack and website protection. This is the information I have found that can effectively intercept my DDoS a PHP code
Query prohibits IP
$ip =$_server[' remote_addr '];
$fileht = ". Htaccess2";
if (!file_exists ($fileht))
Coding | conversion
encoding conversion between gb2312 and Unicode
The following example is to convert gb2312 to "whole" in this form
php4.3.1 later Iconv function is very useful, just need to write a uft8 to Unicode conversion functionTabular (gb231
This tutorial provides a few PHP tutorials to remove a space in a string a variety of methods Oh, using the PHP function, Str_replace,trim, regular and so on to replace the space of the string effective method
A function with PHP itself
Capital | amount | Convert the following C # code to achieve the ability to convert Arabic numerals into Chinese capital amounts, and Visual Studio.NET 2003 debugging Basic Pass (without rigorous testing, I hope you find errors after contact with
Basically handle the hand, the above generated 2.7W a random user name, hehe, to ensure that you use.
Generate a number of 6 ~ 16 user names, mainly text operations, the colleague premise is to have a string package. consists of three programs.
Function
Wrote a few identity card aspects of the function, personal feeling very useful, especially in the network survey, the personal information in the identification card is very useful, but should be a few, or in their own blog to
1. If a method can be static, then declare that he is static, speed can be increased by 1/4;
2.echo is more efficient than print because Echo does not return a value, and print returns an integral type;
3. Set the maximum number of cycles before
Functions | Chinese
/* PHP uses iso-8859-1 to process strings, that is, to handle strings in a single byte. Chinese code belongs to multibyte characters, in the use of substr, Strlen,str_peplace and other functions can easily produce errors,
GZIP (Gnu-zip) is a compression technique. The page size can be turned into 30% or smaller after gzip compression. This way the user will feel very happy when browsing!
To achieve the GZIP compression page requires a common browser and server
A little pee of the length of strings in Chinese and English strings
(Jaklin 2000.8.9)
There are often questions about the length and judgment of Chinese and English strings, because in both ASP and SQL7 the English language occupies only one byte.
This article mainly introduces the MySQL in the Linux system hides the command line password method, the author uses the simple C program realization, needs the friend to be possible to refer to under
Entering commands on the command line is not a
Recently webmaster I also learn php, so tidy up some of the PHP development of small tips for everyone to learn.
0. It is quicker to use single quotes instead of double quotes to contain strings. Because PHP searches for variables in a string
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