PHP Common terminology Library and concept

Source: Internet
Author: User
Tags execution functions header html tags inheritance mysql object model socket
What is PHP?

PHP is the abbreviation for Hypertext Preprocessor, PHP is an embedded HTML scripting language. PHP's unique syntax blends the new syntax of C,java and Perl and PHP. The goal of this language is for Web developers to quickly write dynamic Web pages.

What is Phper?
PHP programmer, refers to the programmer writing PHP

What is a pattern?
Patterns, that is, pattern. In fact, is to solve a certain type of problem methodology. You have summed up the method of solving some kind of problem to the theoretical height, that is the pattern.

What is a framework?
Frame, that is, the framework. In fact, is an application of semi-finished products, is a set of components for you to choose to complete your own system. To put it simply is to use someone else to set up a good stage for you to do the show. Moreover, the framework is generally mature and constantly upgraded software.

What is a stencil?
PHP templates evolve from Perl's template. Templates can improve the structure of the site, you can change the appearance of your entire site in a few seconds; Abstract programming, no spam HTML code; Designers do not need to care about all the "fuzzy" code; Run more quickly; It's easier to reuse old templates (say to plain forms)

What is a CGI user?
CGI is the abbreviation for the Common Gateway Interface (Public Gateway Interface), an information exchange standard used between web hosts and their external computer programs. You can compose an external program using any of the programming languages supported by the operating system that executes the web host.

What is a resource database?
A resource is a special variable that holds a reference to an external resource. Resources are created and used through specialized functions. All of these functions and their corresponding resource types are shown in the PHP manual.

What is a class?
A class is a definition of an object. It contains information about how the object acts, including its name, methods, properties, and events. In fact, it is not an object in itself because it does not exist in memory. When the code that references the class is run, a new instance of the class, the object, is created in memory. Although there is only one class, you can create multiple objects of the same type from this class in memory.

What is a function?
function provides convenience for program designers, usually in a complex program design, always according to the function to be completed, the program is divided into some relatively independent parts, each part of a function, so that each part of the full independence, a single task, clear procedures, easy to read, easy to maintain.

What is Object oriented?
Object-oriented approach (Object-oriented method) is a methodology which is based on the concept of "object", which is a systematic approach to guide development activities, referred to as OO (object-oriented) method, which applies object-oriented ideas to software development. Object is a package composed of data and allowable operation, which has direct correspondence with objective entity, and an object class defines a group of objects with similar properties. Each inheritance is a way of sharing the properties and operations of classes that have hierarchical relationships. Object-oriented is based on the concept of object, Object-centered, class and inheritance as the construction mechanism to recognize, understand, portray the objective world and design, build the corresponding software system.

What is session?
Session in Chinese to explain is conversational period. A session period begins when the user enters a site's URL, and ends when he leaves the site.

What is a socket?
The so-called socket is also commonly called "socket", used to describe the IP address and port, is a communication chain handle. The application usually sends a request to the network through a "socket" or answers a network request.

What is PECL?
PECL is a PHP expansion library warehouse that is packaged with PEAR.


What is a variable?
Variables in PHP are represented by a dollar sign followed by a variable name. Variable names are case-sensitive.

What is a constant?
A constant is an identifier (name) of a simple value. As its name implies, the value cannot be changed during script execution (except for the so-called Magic constants, which are not constants). Changshime think case sensitive. By convention constant identifiers are always capitalized.

What is a super global variable?
A constant is an identifier (name) of a simple value. As its name implies, the value cannot be changed during script execution (except for the so-called Magic constants, which are not constants). Changshime think case sensitive. By convention constant identifiers are always capitalized.

What is a reference?
Referencing in PHP means accessing the contents of the same variable with a different name. This is not like a C pointer, but instead, the reference is a symbolic table alias. Note that in PHP, variable names and variable contents are not the same, so the same content can have different names. The closest analogy is the Unix file name and the file itself-the variable name is the directory entry, and the variable content is the file itself. References can be viewed as hardlink in Unix file systems. What is serialization?
PHP does not support persistent objects, where permanent objects are objects that can maintain state and functionality in multiple application references, which means that you have the ability to save objects to a file or database, and you can load objects later. This is called the serialization mechanism. PHP has a serialization method that can be invoked through objects, and the serialization method can return the string representation of an object. However, serialization saves only the member data of the object without wrapping the method.

What is a constructor?
A constructor is a special function in a class that is automatically invoked when an instance of a class is created with the new operator. This function becomes a constructor when the function has the same name as the class. If a class has no constructors, call the constructor of the base class, if any.

What is a destructor?
PHP 5 introduces the concept of destructors, which is similar to other object-oriented languages, such as C + +. Destructors are executed when all references to an object are deleted or when an object is explicitly destroyed.

What is a cookie?
A cookie is a mechanism for storing data on a remote browser side to track and identify the user. You can use the Setcookie () or Setrawcookie () function to set cookies. Cookies are part of the HTTP header, so the Setcookie () function must be called before other information is exported to the browser, which is similar to the limit on the header () function. Output buffering functions can be used to delay the output of the script until all cookies or other HTTP headers are set as needed.

What is lamp, WAMP?
Lamp is an open resource network development platform based on Linux,apache,mysql and PHP, and PHP is a programming language that is sometimes replaced with Perl or Python. This term comes from Europe, where these programs are often used to set up sometimes as a standard development environment. The name comes from the first letter of each program. Each program is subject to open resource standards in ownership: Linux is an open system; Apache is the most common network server; MySQL is a relational database with a network management add-on; PHP is a popular object scripting language, It contains the best features of most other languages to make its network development more efficient. The tools that developers use in these Linux environments under Windows operating systems are called using WAMP.

What is HTML?
Hypertext Markup Language, Chinese is also the Hypertext Link Markup Language. HTML (Hypertextmark-uplanguage), the Hypertext Markup Language, is the description language of www.

What is an HTML document?
HTML documents are HTML pages, which are Web pages, made up of HTML elements.

What is an HTML element?
HTML elements are a unit of building web pages, made up of HTML tags and HTML attributes, and HTML elements are also a basic unit of web pages.

What is an HTML tag?
HTML tags are the most basic unit in the HTML language, and HTML tags are the most important part of the HTML language. Usually enclose in two brackets:< and.

What is an HTML attribute?
HTML attributes typically appear in HTML tags, and HTML attributes are part of an HTML tag. Tags can have attributes that contain additional information. The value of the property must be in double quotes. A label can have more than one property. Property is a pair of attribute names and values

What is an HTML annotation?
HTML annotation, we often have some code to do some HTML comments, this is a lot of benefits, such as: Easy to find, easy to compare, convenient for other programmers in the project to understand your code, and can be convenient for you to your own code understanding and modification, and so on.

What is a form?
A form is an HTML element that transmits data entered by a browser to a server-side program (such as asp,php), and the server-side program can process the data from the table conveys to perform some action. For example, Bbs,blog Landing system, shopping cart system, etc.

What is the consortium?
The English language of the Web Standard. Web standards are not a standard, but a collection of standards. The Web page consists mainly of three parts: structure (Structure), performance (presentation) and behavior (Behavior). The corresponding standard is divided into three aspects: the structured standard language mainly includes XHTML and XML, the performance standard language mainly includes the CSS, the behavior standard mainly includes the object model (such as the ECMAScript), and so on.

What is DOM?
DOM is an abbreviation of the Document Object model. Based on the http://www.w3.org/DOM/, Dom is an interface with browsers, platforms, and languages that allows you to access other standard components of a page.

What is the head element?
The head element can contain relevant information about the document. The browser does not display this information to the user. The following tags can be used in the head for:<base>,<link>,<script>,<style> and <title>.

What is a URL?
The URL is the uniform Resource Locator the entire sentence English abbreviation, it takes from each word beginning the first English letter to use as the abbreviation, but the Chinese meaning is "" The resource Locator, in the mean, namely we commonly called "the website".

What is a URI?
The URI is the uniform Resource identifier, meaning "consistent resource identifier".


Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.