Refer to the data on the network, using Smarty can be easily tested:
1. Unzip the Smarty to the site directory, such as the name Libs.
2. Create a Templates,templates_c,configs,cache directory
3. Build test page: index.php
Require "main.php"
First installs the PHP5, the direct decompression file to the C:\php (installs to where does not have the influence, with personal preference, all the paths in this article with my installation path, please everyone in the installation of their own
Always want to standardize their own PHP code, and finally realize the birds ~
0. Encoding Unified use Utf-8
1. Indent: Strict indent, 4 spaces (TAB)
2. Curly braces: The statement block below the IF statement, no matter how many lines, the
VERYCD on the search can be a lot of.
The Rhino book looks very sleepy.
As a beginner, you can try to read a lighter book, at home, with extra time to read.
It is not advisable to spend time on this.
PHP Dynamic Web design and production case
The 1.PHP data type is a dynamic type, which determines the type automatically by the value it stores, the type can be transformed, and the variable type is not specified when declaring a variable.
2.define function definition constant variable
Make a record of the problems encountered in the project.
There is a test environment on Linux, there is a local environment on windows, the result is a timestamp comparison, in the test environment is good, the local environment is not effective.
Setcookie can set a cookie, but the cookie page set in PHP is not available for the first time and must be refreshed for the second time.
This is because of the principle of cookies:
The $_cookie array is the variable cookie value returned from
$_server[' Path_info ' is more convenient to view some information about $_server[' Path_info ') and re-modified the analog URL Rewrite.
The purpose is the same, but does not use the class, but directly writes the obtained information to $_get and $_
My favorite PHP ide is Zend Studio 5.5.1, but I also in the Freebsd7 how to pretend not successful, depressed.
ZendStudio5 Zendstudo for Eclipse 6 is not installed successfully and may be a problem with Java.
Had to retreat and ask, install
PHP functions __autoload () and Spl_autoload_register ()
__autoload ($classname) {
}
This method is called when PHP cannot find a class file, and when it registers its own function or method, PHP does not call the __autoload () function, but it
http://www.rfidchina.org/products/product.php?id=9740
After the URL Plus ', the returned page, although there is no error message, the page error is missing the content,
Then is and 1=1, and 1=2, respectively, is the normal information and ' the
Http://realzdf.blogbus.com/logs/1155121.html
1. "PHP Programming":Programming PHPPublisher: China Power PressFormer publishing house: O ' Reilly&associates,inc[Mei]rasmus Lerdorf &kevin Tatroe Deng Yunjia and other translationsPublication date: July
Speaking of how to learn PHP well, as a novice php, I do not have much to learn from the experience to share. But the things in the world are all connected, know some how to do things well, a little transformation used in learning PHP, is also
The Isset function is to detect whether a variable is set.
Format: bool Isset (mixed var [, mixed Var [, ...])
return value:
Returns FALSE if the variable does not existReturns FALSE if the variable exists and its value is nullReturns TURE if
Today encountered a very strange garbled problem, I accidentally solved, but do not know what the reason, had to write down, to prevent the subsequent occurrence of such problems.
When I write the PHP statement to the following page header
The $_get variable is used to collect values from the form method= "GET".
$_get variable
The $_get variable is an array of variable names and values that are sent by the HTTP GET method.
The $_get variable is used to collect values from the form
? From: http://www.cnblogs.com/mrray/archive/2011/05/18/2050233.html
Strtoupper ($string);//Change All caps
Strtolower ($string);//Change All lowercase
Ucwords ($string);//capitalize the first letter of the word
The Strrpos () function finds
Test environment: Windows Server2003 + php5.3.5_ts + Apache2.2.19
New 1.php, placed in the Localhot root directory, the file contents are as follows:
Set_error_handler (function () {Echo ' made a mistake ';});Set_exception_handler
Some of the most commonly used PHP reflection functions Get_class Get_class_methods
1. Get_class? Returns the class name of the object
String Get_class ([object $obj])
Returns the name of the class to which the object instance obj belongs.
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