Here, I would like to share with you my personal website construction experience. Sorry, please correct me!1. Edit the debugging environmentWin98 local editing and debugging, cool? First, run Omnihttpd Proffesinal V2.06 and install PHP4beta3. If you
PHP4 is incompatible with PHP3, but it is mainly caused by PHP. ini in PHP4.There are some differences in the settings. These changes mainly improve the efficiency of PHP4.In the changes, the track_vars settings usually make the old PHP3 program
One of the advantages of PHP is that it is fast. It is enough for General website applications. However, if the site's traffic is high, bandwidth is narrow, or other factors cause a performance bottleneck on the server, you may have to think of
1. IF statementIF statements are an important feature of most languages. They execute program segments based on conditions. PHP's IF statement is similar to C:If (expr)StatementAs discussed in the expression, expr is calculated as its true value. If
In this article, I will show you how to place OSO counters on your image site. I will introduce you to the idea of creating your own free counter system, you have to write the program yourself.Many websites provide the free counter service. A long
Author: Hua honglangThe previous article "talk about PHP syntax" has talked about PHP Data Types and expressions. Now let's take a look at the variables and constants of PHP.Let's take a look at this example first.File: test. php// This is a single
$ Id = @ mssql_connect ("ddy", "sa", "") or die ("unable to connect ");$ Db = mssql_select_db ("ddy", $ id );$ Query = "select * from lr00 order by lr0012 desc ";$ Result = mssql_query ($ query );If ($ result ):If ($ tt = ""){$ Nopa = 0 ;}Else $
After that, we can see that the mysql module is not found in phpinfo (). The so-called solution, such as putting php. ini into C: \ Windows environment variables, is unreliable .....Even copy the dll of the ext folder to System32.It's not reliable
1. Use MyISAM instead of InnoDBCompletely false. counterargument reason:In the original article, MyISAM is used by default. In fact, InnoDB has become the default table engine in MySQL 5.5.x.In addition, the simple use of InnoDB is not a solution to
Copy codeThe Code is as follows:/*** Function for converting a numeric amount to a Chinese capital amount* String Int $ num the lowercase number or lowercase String to be converted* Return uppercase letters* Two decimal places**/Function get_amount (
How to submit cisa to the official php bug pageCopy codeThe Code is as follows:/*** The array_diff () function of php 5.2.6 or later is being processed.* The long time required for large arrays** Finishing: http://www.CodeBit.cn* Source: http://bugs.
Syntax: Substr (string to be intercepted, start position, and truncation length)The start position starts from 0. If you want to extract from the first character, the start position parameter is 0.The last parameter is optional. If only the start
Prev () Definition and usage The prev () function moves the pointer to the current element to the position of the previous element and returns the value of this element.If the internal pointer has exceeded the first element of the array, the
Generally, the display of website pages inevitably involves the interception of sub-strings. At this time, truncate is useful, but it is only suitable for English users. For Chinese users, if you use truncate, garbled characters may occur. In
Cross-Site Request ForgeryIt is difficult to prevent the forgery of Cross-Site requests, and the danger is huge. Attackers can use this method to prank, send spam information, and delete data. Common forms of such attacks include:Counterfeit links
PDO is a major new feature of PHP 5, because php4/php3 before PHP 5 was a bunch of database extensions to connect to and process various databases, php_mysql.dll, php_pgsql.dll, php_mssql.dll, php_sqlite.dll, and other extensions to connect to MySQL,
I. All judgments are in Chinese.Copy codeThe Code is as follows:$ Str = "'2014 is ";If (! Eregi ("[^ \ x80-\ xff]", "$ str ")){Echo "all Chinese ";} Else {Echo "not ";} 2. Identify Chinese CharactersCopy codeThe Code is as follows:$ Str = "Chinese ";
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