On the internet for a long time did not find the UTF8 character set in the simplified conversion, perhaps someone on the internet has written such code. Have looked for a JS version, but to the UTF8 code can not be used, so it produced a
In the forum for a long time no how formally published things, today to share my collection code!
Ideas:
The idea of collecting the program is very simple and can be divided into the following steps:
1. Get the remote file source code
Brief introductionThe English copyright belongs to Reinhold Weber, the author of Yangyang (aka Davidkoree). The bilingual version may be used for non-commercial communication, provided that the English version of the author, copyright information,
Author: Fenng| can be reproduced, must be reproduced in the form of hyperlinks to the original source of the article and the author's information and copyright noticeWebsite: http://www.dbanotes.net/web/flickr_web_tech.htmlCal Henderson is one of
As a PHP developer, one of the things that is probably very useful is the Pear class library. We know that Pear::P ager is dedicated to paging, and Pear::html_ajax is a class library for AJAX applications. But Pager is not just a paging link for
Pear's Php_compat is a more interesting package that provides some php5-specific functions that PHP4 can use, such as file_put_contents,array_combine,str_split .... This way, even on the PHP4 host, you can enjoy the convenience of a little php5
in the development of a small function, is similar to the Forum personality signature Things, according to the member information automatically generated a picture above the kind of text. Image flattening with imagecopy () and imagecopyresampled ()
Imagettftext ($im, 16,0,70,30, $blue, "./simkai.ttf", $char);Using this function is a literal path because the path in Windows and Linux systems is not the sameSo you can copy the font file to the program file current directory callFor example, use
Previously contacted several times MYSQL5, but because the Chinese garbled can not solve and has been using 4.0. MYSQL5 supports a variety of encoding methods, as long as the stored and read encoding consistent will not be garbled, such as gb2312.1.
Many virtual hosts do not support Url_rewriteYesterday also saw a friend of the classic wrote aFeel the code too much.Nothing in the study of the _server. In fact, it can be very simplified.Take http://www.xxx.com/xxx/test.php/article.123456.html to
Phplib is a number of PHP extension libraries, using it we can easily do a variety of operations on the database, but if you want to use multiple databases, it seems to be overwhelmed, this article describes the expansion of phplib, so that you have
After the last release of the Simplet Class (http://bbs.phpchina.com/thread-85257-1-1.html), I found a lot of flaws, such as not supporting multidimensional arrays, annotations and no caching function, this time I added these features!!!If you are
Method One: RecommendedCreate a Boolean variablevar xmlhttp = false;Check if you are using IE browsertry{If JS version is greater than 5XMLHTTP = new ActiveXObject ("Msxml2.xmlhttp");Alert ("You are using Microsoft Internet Explorer.");}catch (e)
Make a home page call image, sometimes need to get fixed-size image, because the image position of the home page is usually specified by the designer, if it is to do the latest release image call, because do not know what proportion of images
The order of the PHP array is actually to sort the PHP array, in this article, the result set of the database query is sorted. Database query results sometimes can not be used directly, such as MySQL with in statements out of the results, so need to
Always wanted to publish something. Recently just put PhP4 in the Php_gd.dll fix, can't wait to do some graphics program to play. See a lot of PHP as a pie chart example, looked at the 2-dimensional, and then want to do a 3-dimensional. After the
This article describes the differences between the 3 similar functional functions, which are mysql_real_escape_string to user submissions and through addslashes and mysql_escape_string. The escaped data can be inserted directly into the
Before you look at these, make sure that you have properly loaded the PDO extension.The practice is to edit php.iniManually add the following two lines (preceded by a semicolon;):Extension=php_pdo.dllExtension=php_pdo_mysql.dllAnd we're going to put
The following code is mainly pseudo-static implementation, search engine likeYou often see other stations of the URL is this it?Http://www.xxx.com/module/show/action/list/page/7OrHTML ">http://xx.com/module/show/action/show/id/8.shtml with an
As a result of recent work in the area of memcachedPHP and Perl were used in the performance test to memcached the performance difference between PHP and Perl for memcached operations around 40~50%The following is a test script that does the same
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