PHP noun Detailed description

Source: Internet
Author: User
Tags setcookie what is lamp

What is PHP?
PHP is the abbreviation for Hypertext Preprocessor, PHP is an embedded HTML scripting language. PHP's unique syntax mixes C,java and perl with PHP-style new syntax. The goal of this language is to allow web developers to quickly write dynamic Web pages.

What is Phper?
PHP programmer, a programmer who writes PHP

What is a pattern?
pattern, which is pattern. is actually the methodology to solve a certain kind of problem. You summarize the method of solving a certain kind of problem to the theoretical height, that is the pattern.

What is a framework?
Framework, which is the frame. is actually an application of semi-finished products, is a set of components, for you to choose to complete your own system. Simply put, use someone else's stage, and you'll do the show. Moreover, the framework is generally mature and constantly upgraded software.

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

What is a CGI user?
CGI is an abbreviation for the Common Gateway Interface (Public Gateway Interface), an information exchange standard used between web hosts and their external computer programs. Any programming language supported by the operating system that executes the web host can be used when writing external programs.

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. See the PHP Manual for all of these functions and their corresponding resource types.

What is a class?
A class is a definition of an object. It contains information about how an object acts, including its name, method, 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 runs, 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 in memory from this class.

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

What is object-oriented?
The object-oriented approach (Object-oriented method) is a methodology based on the concept of "object", which applies the object-oriented idea to the software development process and directs the development activities of the system method, or the OO (object-oriented) method. An object is a package of data and allowable operations that directly correspond to an objective entity, and an object class defines a set of objects with similar properties. Each inheritance is a way to share the properties and operations of classes that have hierarchical relationships. The so-called object-oriented is based on object concept, Object-centered, class and inheritance as the construction mechanism, to recognize, understand, depict the objective world and design, build the corresponding software system.

What is a session?
The session is interpreted in Chinese as a conversation period. A session period begins when the user enters the URL of a site and ends when he leaves the site.

What is a socket?
A socket, often referred to as a socket, is used to describe an IP address and port, which is a handle to a communication chain. Applications typically make requests to the network through sockets or answer network requests.

What is PECL?
PECL is a PHP extension repository through the PEAR packaging system.

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 (first name) of a simple value. As the name implies, the value cannot be changed during script execution (except for the so-called magic constants, they are not constants). Changshime is considered to be case sensitive. By convention constant identifiers are always capitalized.


What is a reference?
Referencing in PHP means accessing the same variable content with a different name. This is not like the C pointer, instead, the reference is the symbol 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 filename and the file itself-the variable name is the directory entry, and the variable content is the file itself. References can be seen as hardlink in Unix file systems.

What is serialization?
While PHP does not support persistent objects, permanent objects in OOP are objects that can hold state and functionality in references to multiple apps, which means having the ability to save objects to a file or database, and to load objects later. This is called the serialization mechanism. PHP has a serialization method that can be called through an object, and the serialization method can return a string representation of an object. However, serialization saves only the member data of the object and does not package the session method.

What is a constructor function?
A constructor is a special function in a class that is called automatically when you create an instance of a class using the new operator. This function becomes a constructor when the function has the same name as the class. If a class does not have a constructor, it calls 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 removed when all references to an object are deleted or executed when an object is explicitly destroyed.

What is a cookie?
A cookie is a mechanism for storing data on a remote browser to track and identify users. You can use the Setcookie () or Setrawcookie () function to set the cookie. A cookie is part of the HTTP header, so the Setcookie () function must be called before other information is exported to the browser, similar to the limit on the header () function. You can use the output buffering function 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 source Web development platform based on Linux,apache,mysql and PHP, a programming language that is sometimes replaced by Perl or Python. The term comes from Europe, where these programs are often used to assemble sometimes as a standard development environment. The name comes from the first letter of each program. Each program in ownership is compliant with open resource standards: Linux is an open system; Apache is the most common Web server; MySQL is a relational database with Web-based management add-ons; PHP is a popular object scripting language, It contains the best features of most other languages to make its web development more effective. Developers using the tools in these Linux environments under the Windows operating system are called using Wamp.

PHP noun Detailed description

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.