Although xdebug is available, log or var_dump is usually used for debugging.
I often want to know the current variable status when executing a certain point. I came back today and found the following information on the PHP Official Website:
Constant
A constant is the identifier (name) of a simple value ). As its name implies, during script executionValue cannot be changed(Except for so-called magic constants, they are not constants ). Constant isCase Sensitive.Constant identifiers are
Every development language has its own unique things, and PHP is no exception. Although I just started learning PHP, I have 2 years of Java experience and 1 year of experience. net experience is not difficult for me. The key is to accumulate and
From http://vianoz.javaeye.com/blog/650791
Configure PHP in IIS 5.1 of the XP system so that IIS 5.1 of XP can also run PHP programs.
XP, as a common system, cannot be used as a server.
However, for debugging some ASP, PHP website programs are still
1. Add a string function:
Number_format (number, decimals, decimalpoint, separator)
Parameters
Description
Number
Required. The number to be formatted.If no other parameter is set, the number is formatted
List ()
(PHP 4 and PHP 5)
List-specify variables as if they are an array
DescriptionVoid list (mixed $ varname [, mixed $...])Like arrays (), this is not a real function, but a language structure. A list () is a job used to specify a variable in the
Set_time_limit favoritesSyntax: void set_time_limit (int seconds)
Note:
Set the number of seconds that a program can run. If the time limit is reached, the program will return an error. The default limit time is 30 seconds. The value of
1. What is the difference between get and post submission methods in a form?A: Get is a request sent through the HTTP protocol to receive the request through URL parameter transmission, while post is an object data, and a large amount of information
In this case, we need a very reliable current time to support it. Although the time of most servers is very accurate, we use time () the time obtained is reliable, but it is inevitable that there will be inaccurate situations. Some servers do not
1. echo, var_dump, die, log
Die ("test"); var_dump ($ var );
2. NetbeansRemote debugging (if URLWrite is not successfully tested)
Php scheduling is a little troublesome. I tried using Netbeans yesterdayIt is easy to use without URLRewrite,The
Many systems, such as dedeCMS and phpCMS, have been used for reference when writing this function. Unfortunately, they all have bugs and they cannot control the volume size, there is always a thought:
// If you want to publish this article, please
It is very difficult to develop multi-language Web applications. The encoding methods, currency symbols, date formats, numeric formats, and text performances of character sets in various countries are different.
// If you want to publish this
In the development process, we need to know the PHP errors in real time, so set it to True. If there is an error, the program will immediately output the error to the display.
However, if the program is published to the server, then it will not only
1 date_default_timezone_set ('prc'); // Default time Zone 2 $ t = time (); 3 $ today = date ("Y-m-d", time ()); 4 echo "today: $ today "; 5 echo "one day :". date ("Y-m-d", strtotime ("18 June 2008 ")). ""; 6 echo "yesterday :". date ("Y-m-d",
How painful is it to use php to write http servers? The answer is that it takes the egg to crack.
Fortunately, this is just a little painful, so I wrote something very rough to learn about the usage of php socket (tcp) + fork.
First, let's talk
View Code
1. PHP sends Chinese and Ajax messages2. Just add a sentence at the top of php:3 header ('content-type: text/html; charset = GB2312 ');4 xmlHttp parses the Chinese characters correctly.56 Ajax send Chinese and PHP receive7. This 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