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:
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
Image Upload and storage maximum file size: 1 MB : jpg | jpeg | gif | bmp | png | swf | mp3 | w Ma | zip | rar | doc does not exist! "; exit;} $ file = $ _ FILES [" upfile "]; if ($ max_file_size the file is too large!
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. Which of the following statements will not add John to the users array?$ Users [] = 'john ';John is successfully added to the array users.Array_add ($ users, 'john ');The function array_add () is not defined.Array_push ($ users, 'john ');John is
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
There is an extension in php that supports the DES encryption algorithm: extension = php_mcrypt.dll
Opening the extension in the configuration file cannot be used in windows.
You need to copy libmcrypt. dll in the PHP folder to the system32
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
Ideas:
First, install Apache and ensure that Apache works properly. For more information about how to install Apache2.2.x in Windows (http://indian.blog.163.com/blog/static/1088158200755105546704), see my other article ).
The second step is to
PHP is really easy to use. Today, after learning from scratch, I feel that I can write something simple...0 cause:
A PHP plug-in often needs to be updated in the company. Although php update programs already exist, the plug-in cannot be updated in
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