Recently webmaster I also learn php, so tidy up some of the PHP development of small tips for everyone to learn.
0. It is quicker to use single quotes instead of double quotes to contain strings. Because PHP searches for variables in a string
HTML section:
function Postrequest (strURL) {var xmlHttp;if (window. XMLHttpRequest) {//For Mozilla, Safari, ...var xmlHttp = new XMLHttpRequest ();}else if (window. ActiveXObject) {//For Internet Explorervar xmlHttp = new ActiveXObject ("Microsoft.
Body:
In the last section ("Talking About PHP Syntax (3)," the cookie and session are mentioned in the end, this article introduces the two techniques.
Cookies are often read as "Memory", also called "small dessert". It is a small file stored in the
Tip 1: Use the appropriate error reporting
Generally in the process of website development, many web programmers always forget to make bug reports, which is a huge mistake, because proper error reporting is not only the best debugging tool, but also
function Introduction
Cron is a timed distributed timed task service that ACE provides to developers, and can perform related tasks on a regular basis as required. For example, back.php periodically queries the database for specific messages to be
Free to do nothing, on the system from the lexical analysis of PHP, syntax analysis, opcodes generation, implementation, the entire process, detailed analysis of the Global keyword implementation.
When you write in the script:
$var = "Laruence"
The following description has no theoretical basis and is purely empirical.
MySQL uses more than 4.1 version, the tube is what character set, all use default. Do not have to set MySQL.
Then give an example of using GB2312 and UTF-8.
All right,
Since PHP5, the authorities have greatly enriched the object-oriented support, with one important change: the introduction of the __autoload () function, which no longer requires a stack of require or include in the header of the PHP script, as the
Function: Refers to a collection of code that has a function of some kind. When this function is needed, we go to execute (call) the corresponding function. Structured programming, which encapsulates functionality into an independent structure.
Using PHP as a shell script is a handy thing to do. Of course, we can use PHP script to manage nginx virtual host, the following is the author's script file for your reference
The code is as follows
#!/usr/bin/php-q
As mentioned in the previous Jpgraph tutorial, the way to improve jpgraph performance is to install the PHP accelerator in addition to using the Jpgraph caching system. In fact, installing an available PHP accelerator is one of the best ways to
Introduction: This article will be from a tester's perspective on the official PHP automated testing methods, automated test framework structure, as well as specific implementation of the analysis and research. Give the reader a practical example of
Download PHP from Http://www.php.net, then extract it to c:\php;
Move "php.ini-recommended" to C:\WINDOWS after renaming "PHP.ini";
Move the Php4ts.dll to the C:\WINDOWS\System32;
Go to the Control Panel? "Management tool" (Administrative
Author: Louis SimoneauOriginal link:http://www.sitepoint.com/blogs/2010/02/09/debug-php-firebug-firephp
Translator:ALSWL
If you are like me, you will not be able to leave FireBugwhen you develop Web projects. This small "bug" is a magical and
Mod_rewrite is a very powerful feature of Apache that can implement pseudo static pages. Let me elaborate on its use method 1. Detect if Apache supports Mod_rewrite Phpinfo () function in PHP to view the environment configuration, through Ctrl+f
We often experience this by rewriting a few legacy code that has not been tested, even if the code is written with an Object-oriented object. To test this code, my advice is to break the code into chunks so it's easy to test.
However, these legacy
Site maintenance often encountered a problem is that the structure of the site has been fixed, but in order to update a little content and have to redo a large number of pages. PHP provides a simple, efficient way to solve this problem by putting
Environment used by ODBC
Create a test data library first.
Then create an ODBC connection
and build a test PHP Script.
Let's try it.
Author
Thank
Use of the environment
This document is mainly stated in the WIN32 environment, what you need is a
How does the php file open? In fact, we are not required to open PHP files, most simply because of downloading things, the wrong download to become a Web page file, the main download station in the download connection is actually PHP script file
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.