Transferred from Http://www.jb51.net/article/22501.htm
PHP header to define a PHP page for UTF encoding or GBK coded PHP page for UTF encodingHeader ("content-type:text/html; Charset=utf-8 ");PHP page for GBK encodingHeader ("content-type:text/html;
Cookies are client-side technology, and the server writes each user's data to the user's browser in the form of a cookie. When users use the browser to access the server's Web resources again, they carry their own data, so that the Web resources
Reprint article Source: http://www.linuxidc.com/Linux/2017-02/140777.htm (if invasion delete)
The full text reads as follows:
Company a test server, recently appeared 504 and 502 Problems: (Environment lnmp,php compile installation, fastcgi mode),
introduction of Appserv software
Appserv is a PHP Web site tool combination package, the author will be a number of free network of station resources repackaged into a single installation program to facilitate beginners to quickly complete the stand,
I was built in the CENTOS5 environment of the Nginx server, using the PHP-FPM way to drive PHP, the following description of the use of the configuration process.
Environment:
Operating system: CentOS 5
nginx-1.0.12
php-5.3.10
1. Install php-5.3.10
PHP is a dynamic and promising open source Web program
For example:
In the CMS, Joomla, Drupal,
Blog in the WordPress, B2evolution,
MediaWiki, TikiWiki in the wiki,
Database management Tools phpMyAdmin, Turbodbadmin,
The SugarCRM in CRM,
The Weberp
when we develop the app interface, we often need to process HTML Rich text strings, with many useful functions in PHP for us to use
functions you need to use:Str_replace () string replaces Html_entity_decode () HTML string to HTML tag strip_tags ()
1 using the browser to access the interface address (new Corn.bat file, the contents are as follows) "C:\Program files\internet Explorer\iexplore.exe" http://www.baidu.com The front is the path of the browser, need to quote, followed by the
1. Write a comment
Comment in HTML file
HTML annotations can be seen in the source file, but are not displayed on the rendered page.
PHP comments are not sent to the web browser, even if you view the Web source file.
PHP annotations
Commonly used array functions in PHPArray skills sometimes solve many problems. You can get twice the result with familiarity with related functions.Are you familiar with the following array functions?
I. basic functions of Array OperationsKey name
If the English language is OK, you can directly read this article
There are two methods to implement real-time communication:Socket or comet. Socket is a better solution. The problem is that not all browsers are compatible, and server implementation
In extension, sometimes the value set in PHP. ini needs to be used. In PHP extension, the INI variable is used as follows:
First use:Php_ini_begin ()Php_ini_entry ("foo_bar.global_value", "42", php_ini_all, null)Php_ini_entry
*//************************************* * ************* // $ _ Request array // use a version later than php4.0, includes $ _ Get, $ _ post, $ _ all content in cookies /********************************* * ***************** // $ _ Session array //
Recently, due to work needs, I learned PHP-related programming. The socket communication of PHP is needed. Originally, PHP socket communication is simpler than C language, but the server uses C code, the client uses PHP, and local communication,
The iterator, also known as cursor, is a software design pattern for programming. It can be accessed over container objects (such as list or vector, designers do not need to care about the content of container objects.
Different Languages implement
If you see this warning when executing the PHP program: "Warning: cannot modify header information-headers already sent ...."
Few notes based on the following user posts:There are several solutions:
1. blank lines (blank line ):Make sure no blank
PHP treats all methods starting with _ (two underscores) in the class as magic methods. It is generally recommended that you do not add _ as the prefix before the custom method.
Magic method:
1._ Construct ()
The default constructor of the class. If
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