0x00 test Environment
Operating system: CentOS6.5 Web server: Nginx1.4.6 PHP Version: Php5.4.26
0x01 Nginx Introduction
Nginx itself cannot handle PHP, it is just a Web server, when the request is received, if it is a PHP request, then sent to
Focus: In fact, and ordinary a bundle in the same, just the entity address to write all on the line.
Example:
Table Commentone (multi-party)
Table Shopone (one side)
Commentone entity correspondence in Userbundle
Shopone entity
The difference between new static () and new self () in PHP
Self: Always points to the class itself, regardless of how many times the class has been inherited, which points to the class that originally used self;Static: Pointing to a class that
The Set_exception_handler () function sets a user-defined function to handle all uncaught exceptions.
Exception: ", $exception->getmessage ();} Set_exception_handler (' myexception '); throw new Exception (' uncaught exception occurred ');? >
Today encountered a Unicode character back into the Chinese question, a search, it seems that PHP does not have a special built-in function.
Search the Internet, there are netizens posted their own package of PHP tools, functionality can be
I. Modification of HTTPD.CONF
Open the Appserv installation directory, locate the httpd.conf file, and remove the # number in front of the following two lines, respectively.
[Plain] View plaincopy
#LoadModule Vhost_alias_module
1. Write a function to put 1,2,3,4,5,6 randomly into an array, 3 cannot be in the third position, 5 and 6 cannot be next to each other.
function Sort_test ($array) { while (true) { shuffle ($array); $temp = Array_flip ($array);
A few days ago, I learned to use it on a project by simply learning the next Redis. We are currently using the YII2 framework, search the website of the next Redis, found the Yii2-redis this extension.
After installation, use ultra-simple, open the
Directly on the instance
Written to hundreds of billions.
/**
* @author ja Ode* Replace the number 1.1 billion with Chinese characters, such as:123-> 123* @param [num] $num [number]* @return [string] [string]*/function Numtoword ($num){$chiNum =
Nginx environmental problems for two days, found online a lot of people's posts are either copied or pasted, or there is no knot paste, but also write their own "Haha, I solve their own" and so on, I despise these postings of compatriots, you said
PHP upload image Save to database example
PHP uploads images, generally using the Move_uploaded_file method saved on the server. However, if a website has more than one server, you will need to publish the pictures to all the servers in order to
This paper summarizes several ways of combining JS and PHP to implement uploading files.
Test Environment thinkphp3.2,phpstudy2014 (Apache + PHP 5.3)
Either way, the first thing to do is to configure the PHP upload file sizeOpen PHP.ini
To the customer deployment pxxcms, using the mass function to send the text of the time hint: A post error occurred: Error code 40005, return error message: Invalid file type, did not learn PHP hurt ...
Google to a brother's blog, there is a
Pick up an article
3 In-page (in-page) configuration, direct configuration in the interface using CKEditor
In-page configuration
Effect
Features: Configuration items belong to a specific ckeditor instance, not reusable
Comparison of three
This note is used to record some of the problems encountered in the re-learning of PHP and MySQL Web development (version Fourth of the original book), as well as solutions.
The first thing I used was the WAMP environment.
In the 19th chapter,
Use this article to build a good environment first
Http://jingyan.baidu.com/article/5bbb5a1b35511c13eba17912.html
And then the error: not running.
New Solution win8.1 System IIS "HTTP error 500.0,c:\php\php-cgi.exe-fastcgi Process exited
I downloaded the
Nginx
source version is not tested, by date is
-
years
7
the latest version of the month. Unpack the package to get the source folder, go to the root directory to find a few subdirectories:
Auto
,
conf
,
Contrib
,
Docs
,
Misc
,
src
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