Note: when using the configuration file must first back up a copy, named: name-backup.conf
Public welfare library PlatformI. Environment setup:
1. Modify the default project folder in Apache
In httpd. modify DocumentRoot "xxx/htdocs" to DocumentRoot
PHP only includes class, method, attributes, and extensions. It is not used to development in object-oriented languages such as C ++, Java, and Delphi.
Program Users may wish to read a book on object oriented concepts first. I believe this will
Solution to the seo title of a single web page in phpcms, and the title of phpcmsseoSource: www.bayinmao.comPhpcms v9 single page calls seo META Title and seo META KeywordsBecause seo META Description is called on a single page by default, you can
PHP getallheaders cannot get the custom headers.
A custom http header is added to the client request. The request is as follows:
Custom http Request Header
var_dump(getallheaders);
At first, the getallheaders parameter was obtained, but it was
In PHP, you must set a global variable. This global variable can be set in the environment variable.
In PHP, there are multiple ways to set environment variables.
First, set it in httpd. conf or in VirtualHost of httpd. conf. Use the SetEnv command,
Basic Shell learning and basic Shell LearningShell
Shell is a program written in C language, which serves as a bridge between users using Linux. Shell is both a command language and a programming language.
Shell is an application that provides an
JS is the front-end language, PHP is the background language, and the front and back-end are often unclear at the beginning (I did it at the beginning, and now I am also committing a crime ), my original idea was to regard the frontend and backend
Smarty variable modifier instance analysis and smarty instance analysis in php
This article describes how to modify the smarty variable in php. Share it with you for your reference. The specific implementation method is as follows:
Test. php code:
For a php: // input introduction, the PHP official manual provides a clear overview of it.
"Php: // input allows you to read raw POST data. it is a less memory intensive alternative to $ HTTP_RAW_POST_DATA and does not need any special php. ini
PHP study notes, php notes
PHP(Personal homepage) is an embedded HTML language, a scripting language that is executed on the server side to embed HTML documents. Maintained by zend.Why do I need to install a web server? Because our Browser needs to
Linux variable typesShell variable
When defining a variable, the variable name does not contain a dollar sign ($, required for a variable in PHP), for example:
your_name="runoob.com"
Note that there is no space between the variable name and equal
ReferenceReferencing in PHP means accessing the same variable content with different names. This is not like the pointer of C. Instead, the reference is the alias of the symbol table. Note that in PHP, the variable name and variable content are
Referencing in PHP means accessing the same variable content with different names. This is not like the pointers of C. They are symbol table aliases. Note that in PHP, the variable name and variable content are different, so the same content can
Simple reference to fopen functionsThe fopen () function opens a file or URL.If opening fails, this function returns FALSE.SyntaxFopen (filename, mode, include_path, context)Instance 1Example of creating a file: The code is as follows:Copy code
Variables are used to store values, such as numbers, text strings, or arrays.Once a variable is set, we can reuse it in the script.All variables in PHP start with the $ symbol.The correct method for setting variables in PHP is:$ Var_name = value;
Php-fpm.conf
The editor configures the FPM configuration file as a php-fpm.conf when loading... runtime, and its syntax is similar to php. ini. Position of the pid stringPID file in the php-fpm.conf global configuration segment. the default value is
The system prompts "Undefinedvariable: php_self" for the Undefinedvariable variable in php paging. the page displays the list normally. when you click "next page", the page number changes, however, the page content is displayed on the first page.
How to use the session in PHP
Declaration and use of the session
The session setting differs from the cookie, which must be started first and must be called session_start () in PHP. The syntax format for the session_start () function is as follows:
The difference between magic variable __method__ and __function__ in PHP, Functionmethod
This article explains the difference between magic variable __method__ and __function__ in PHP, and shares it for everyone's reference. The specific analysis
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.