Install nginx + PHP in Ubuntu 10.10
I have been installing the system for a while, and I haven't installed it yet. I plan to use Ubuntu for development at work today. So I just installed nginx and it was a great deal of fun on the company's
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.
Constant
A constant is the identifier (name) of a simple value ). As its name implies, during script executionValue cannot be changed(Except for so-called magic constants, they are not constants ). Constant isCase Sensitive.Constant identifiers are
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 \
We often collect articles from a website, but they often have internal links. Removing these links is not conducive to Seo optimization. In fact, we can use the PHP regular expression to replace the URL with the specified URL.
For example:
The
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) { [
Objective: To exchange frontend and backend data
Ideas:What is the JSON data format? How can I convert my content into JSON format in various backend languages? How does the front end receive JSON data? How can this problem be solved? In JS, how
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->
L: linux (system installation skipped. This article does not cover it)
M: Mysql (skipped in this article)
N: nginx
P: PHP
First install nginx
1. Download source code: Download To The http://wiki.nginx.org/Install, put it
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