In PHP Rawurlencode and Rawurlencode are the characters are encoded, the following I will introduce UrlEncode and rawurlencode the difference, there is a need to understand the friends can refer to.
The purpose of UrlEncode is to encode a string,
PHP is a loose type of language, do not have to use the variable to do a special definition, which gives the program to write a lot of flexibility and convenience. But in the process of programming, we need to know what kind of variables we use,
This article to introduce to you in the Windows system IIS7 configuration PHP Environment of several methods, there is need to know the friend can refer to, here I take PHP5.2.17 and PHP5.3.5 as an example, IIS7 configuration PHP5.3.5 and PHP5.2.17
This article to share a self-used verification code instance, from the generation of picture verification code to the use of examples of using verification code, there are students who need to learn to refer to this article Oh.
Hyml page
Download Apache to remember next openssl httpd-2.2.19-win32-x86-openssl-0.9.8r.msi download PHP remember thread safe, so that it is easy to build HTTP service PHP tutorial -5.2.17-win32-vc6-x86.msi under The surface is reproduced. The installation
PHP saves images in binary form to MySQL database
PHP Tutorial to save images in binary form to MySQL Tutorial database tutorial
$errmsg = "";if (! @ mysql_connect ("localhost", "Trainee", "abc123")) {$errmsg = "Cannot connect to database";}@
Today in the use of a regular prompt deprecated:function eregi () is the deprecated in error, and later queried for one reason is that we php5.3, in 5.3 has not supported eregi function, you can directly use Preg_ Match to replace.
Pre-change:
PHP anomaly mechanism, can only be regarded as an imported product, PHP books on the abnormal mechanism of the discussion is very few, mostly only in the grammar stage. Some people praised the PHP exception is a good thing, also some people think
This article to introduce to you in the window under the PHP Call Curl Report memory is not enough (curl out of memories) of the solution, there are friends who encounter such problems can be consulted.
Today in the call Sina Weibo API (the official
Web page changes to the search engine friendly after the best way to do is to do 301 redirect, if not temporarily to some or some of the Web page transfer, we all think to do 301 redirect more appropriate.
Web page changes to the search engine
There may be a lot of people come across in PHP if it is UTF8 encoding we import the file will appear blank line problem, below I will give you the reference file blank line solution.
A reference file refers to a blank line that is caused by an
Chinese characters in the PHP application often brings us some trouble, today found an array of arrays on the Internet to convert to XML found that the Chinese characters are empty, and then GG're wrong about a better result, the following share
This article to sum up a few good php sorting algorithm, I hope these algorithms for you to help the reunion Oh.
The code is as follows
Copy Code
1. Bubble algorithm, sorting algorithm, because in the sorting process is
PHP Tutorial Image Processing class (generate thumbnails, add watermarks, get picture information)
This article provides this image processing class, he can do things have the image generated thumbnails, may add watermark to the image and get the
This article provides a PHP tutorial to generate a detailed tutorial of verification code, the first is about the build validation core code, followed by a build and Invoke method.
Header ("Content-type:image/png");$num = ' 1234
This article provides a free PHP image processing class: Thumbnail, clipping, fillet, tilt code, he can cut out different styles of pictures oh, haha, more than the other online cut diagram is much better oh.
PHP Tutorial Picture Processing class:
PHP image upload class can also generate thumbnails and watermark This image upload code can upload images to add watermarks, generate small images, but also can generate text watermark.
PHP Tutorial Picture Upload class can also generate thumbnails
In PHP if we want to use PHP mcrypt encryption extension Library must first install this encryption extension library, and then can be used, because it is the same as the GD library by default is not installed OH.
MCrypt Brief Introduction
PHP
Using PHP to screenshot or implement a page snapshot we need a tool: Xvfb and Wkhtmltoimagek Oh, this tool is currently only available in Linux systems, the following interested friends can enter the reference.
When making a travel strategy, we need
Generate random data in PHP directly using Mt_rand can be achieved, if you want to generate non-repeating random number we can use the Unique_rand function, let me summarize the commonly used methods.
The code is as follows:
The code 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