1 Preface
PHP is widely used in the background CGI development of the web, usually after the user data data to obtain a certain result, but if the user input data is incorrect, there will be problems, such as someone's birthday is "February 30"!
One, how to define a constant
Keyword: Define syntax define (' Constant name ', ' constant value ')
Two, array
1 Defining an array
The keyword array Syntax array (KEY=>VALUE,KEY2=>VALUE2,KEY3=>VALUE3) key can be an integer or string, value
As for the PHP connection mssql2008 method can refer to my blog other articles will be introducedOperation.We can first read the download of the plugin inside the Help file, which is written in a very detailed unfortunately in EnglishYou can also
First, page encoding
1. Use
Label Settings page encoding
The purpose of this tag is to declare the client's browser with what character set encoding to display the page, XXX can be gb2312,gbk,utf-8 (unlike MySQL, MySQL is UTF8) and so on. As a
This article is mainly from the principles, manuals and source code analysis in PHP query MySQL return a large number of results when the memory footprint of the problem, while the use of MySQL C API is also involved.
Yesterday, a colleague in the
Many times we need to concatenate a few strings to show that in PHP, the strings are connected using "dots", which is the period "." in English, using the following method:
Defining strings
$str 1 = "Hello world!";
$str 2 = "Welcome to Hutaow
PHP is the backbone of today's Internet development language, with about 20 million domain names (websites) using the same language as the PHP language. The PHP language has become a very popular language because of its great advantages and extreme
In the previous PHP Unit testing tool: PHPUnit Preliminary discussion of the article, we have a preliminary understanding of PHPUnit, in this article will continue to explain in depth phpunit some of the usage.
1, marktestskipped and
Recently with the development of PHP, can not debug very depressed, and then find an article on the Internet to build the environment, some of them are outdated, and many of the details are not mentioned, for the rookie like me is more difficult,
PHP to get Baidu related search and original degreeGet the original degree is get_em_times, the higher the value the longer the text length the less original.Search engine optimization for acquisition projects
Class Baidu {
public static function
Using PHP to develop applications, especially Web applications, often requires the generation of random passwords, such as user registration to generate random passwords, user reset password also need to generate a random password.
Random password
We often encounter a 8-hour difference between the time and the actual time of the project development, because we are in a different time zone than the PHP Developer's time zone, and by default it is not the East eight zone. There are two general
About the function of time:
Strftime formatting local time/date based on regional settings
strptime-parsing date/time generated by strftime ()
setlocale function Setting Region information (Geographic information)
Date_default_timezone_set if
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
Pre-Knowledge: Group By,mysql function Week (), month ()
When designing a database, there is generally a field to record the click-through rate of the article, if we want to count a week or one month Ctr ranked by this field is definitely not
Explode
explode-using one string to split another stringArray explode (string $separator, string $string [, int $limit])
This function returns an array of strings, each of which is a substring of string, separated by the separator of the strings as
Are you faced with creating a site that is created by a programmer (probably you) and a designer at the same time? Don't you know how to make the job easier for both of you? Let me give you the answer: use Fasttemplate to make your site easier to
We open the WinRAR Help file, the Help file mentioned in the command line mode to modify the RAR file comments and add a compressed document two parameters are Ac,winrar the following:
Add all *.hlp files from the current folder to the compressed
Recently in the PHP program, you need to make the browser between HTTPS and HTTP conversion, Internet search related information, but only recently in the PHP program, need to make the browser between HTTPS and HTTP conversion, Internet search
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