You do not have to strictly abide by these principles and violate them and are not subject to religious penalties. However, you should regard these principles as warning bells. If you violate one of them, the warning bells will ring. ----- Arthur J.
I. File Format
1.Code, We will ignore "?> ". This is to prevent extra spaces or other characters from affecting the code.For example:$ Foo = 'foo ';2. indentation should be able to reflect the logic results of the Code. Try to use four spaces and
First, install PhP5 and decompress the file directly to c: \ PHP (it does not affect the installation. Based on your personal preferences, all the paths in this article are in my installation path, when installing Apache on your machine, you must
PHP's single quotes and double quotes are not the same as C #, Java, HTML, and Js. PHP single quotes and double quotes are different.
PHP:
Single quotes ('') indicate the output as is. That is to say, the variable name or any other text will be
Iconv is not the default function of PHP, but also the default installed module. Installation is required.
Modify PHP in windows. INI file, remove ";" before extension = php_iconv.dll, and copy the iconv under your original PHP installation file.
Although Huawei information machine only provides DLL and Java interfaces, other languages can still be called by using its stored procedures. The following is an example of a PHP call.
Class phpsms {VaR $ dbhost = "IP: 1433 ";VaR $ dbname =
In the past, I was curious that the website could obtain the IP address of the user accessing the current page. Now I know that the website uses the $ _ server parameter $ _ server ['remote _ ADDR '] in $ _ server.
You can input parameters to the $
There are several kinds of Chinese spaces: There is no simple solution to the problem, such as halfwidth and fullwidth spaces. For example, the Section characters are displayed as blank and people may misunderstand that it is a space, therefore,
There are hundreds of folders, such as idr_web_bkg_png, idr_web_bkg_xml, idr_web_bkg_ico, files, and manually update suffixes one by one. It is too troublesome to use PHP for batch update,CodeAs follows:
$ Dir = ' D: \ Program Files \
Introduction: This is a detailed page for PHP to run external commands [from Osso] as root. It introduces PHP, related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: //
Introduction: This is a detailed page for PHP Development Environment installation and configuration. It introduces PHP, related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: //
Add date_default_timezone_set (PRC) to the front of the page ); /* Change the time to Beijing time. The default PhP5 time is Greenwich Mean Time. */ Date () : "Am" or "PM" A : "Am" or "PM" D : Day (s), double-digit characters. If not, zeros are
I ,:
Apache2.0.50: http://httpd.apache.org/download.cgi
Php5.0.2: http://windows.php.net/download/
Mysql5.0.2: http://dev.mysql.com/downloads/
Zend2.5.2: http://www.zend.com/store/free_download.php? PID = 13]
I won't even mention the
Introduction: This is a detailed page on PHP user identity authentication (4). It introduces PHP, related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php?
The general data types (INT, float, bool) are not described in this regard.
Here we will introduce in detail the differences between the array and the class object passing values as parameters.
Array value transfer
Instance code:
output:array(2) { [
Recently, there was a project involving cooperation with other websites. The authentication plan for communication between the two parties was implemented through RSA. Because it may involve different development environments, we need to study the
$ _ Server ['php _ Self '] # File Name of the script being executed, which is related to document root.$ _ Server ['argv'] # parameters passed to the script.$ _ Server ['argc '] # contains the number of command line parameters passed to the Program (
This is a pointer to the object instance. self is a reference to the class itself, and parent is a reference to the parent class.
This:
Class Username{// Define attributesPrivate $ name; // Define the constructorFunction _ construct ($ name){$ This->
The php interview questions collected on the Internet are posted for you in the php tutorial!
I. Basic Questions
1. What is object-oriented? What are the main features?
A face object is an elegant method to directly map objects and concepts 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