recently always want to write something, but can not remember what to write, then tidy up the things you churn, everything began in a month black night--
Clicked a clap, 56k kitten burned, trousers are off, a piece of darkness, suddenly bright
Next post, CentOS under compile and install Apache
Before compiling and installing PHP was a long time, very annoyed, and now finally straightened out. Tidy up a bit.
1. Install dependent filesYum Groupinstall "Development tools"
If you do not
The environment for this article is Ubuntu 12, and other systems can be consulted or communicated with me.
1, install Nginx
This step is relatively simple, direct sudo apt-get install Nginx, you can install. After installation, you need to set the
Why do you want to save the session in the cache
As far as PHP is concerned, the session supported by the language itself is saved to the disk file in a file, saved in the specified folder, the saved path can be set in the configuration file or in
1.main.html
Frame Link Flag
2.menu.html
DirectoryDirectoryLink to first pageLink to second page
3.page1.html
This is the first page 1111111!
4.page2.html
This is the second page 111111111!
Open mian.html the
The solution of Gvim garbled problem
Vim has four options related to character encoding: encoding, fileencoding, Fileencodings, termencoding (the possible values for these options are referenced in the VIM online Help: Encoding-names), their
Just the last example to explain it to you ~
I. BASIC OBJECTIVES
Set a form in phpsend.html, the value entered above can be phpget.php to receive
Second, the production process
Like JavaScript, the values in PHP are of a type, and a $ represents a
Go to nginx official website to download the corresponding version
Download Address: Http://nginx.org/download/nginx-1.6.2.zip
Download complete decompression and put it in your favorite directory; the landlord put it in the F:\nginx.
Enter the cmd
static method:
Example
Class A{public static function A () {# code ...} public static function B () {# code ...}} Use A::a (); A::b ();
When the script is interpreted, the static method is loaded into memory (and a single copy of the storage). Use
What is the difference between a thread-safe and a non-thread-safe version of PHP
The Windows version of PHP from version 5.2.1 started with the thread safe (thread safe) and none thread safe (NTS, non-thread-safe) of the points, the difference is
Just want to study how to back up the database, share a PHP implementation of MySQL backup class library
Query ("SHOW CREATE TABLE $table"); $create = $db->fetch_row ($createtable); $tabledump. = $create [1]. "; N\n ";
Reprinted from: http://blog.csdn.net/qq1355541448/article/details/16807429
Zend Studio 10 official version of the cracked and Chinese
March 12, 2013 ? PHP ? A total of 975 words? Do you have any comments on The small size? Read 6,828 times
Today
Because the client and server-side data transfer in the microblog program can sometimes take a long time, multi-process asynchronous processing is the interface UI and data sending and receiving is not in a process. A new thread is opened each time
1. Create a new file
PHP Artisan generate:seed Page
Create a new app/database/seeds/pagetableseeder.php file.
PHP Artisan Generate:model Article
Create a new app/models/article.php file.
PHP Artisan Generate:view Admin._layouts.default
Create a new
1 using extends to implement inheritance and the meaning of overloading, magic methods
Class B extends A
At the time of the Declaration, B could have no way in a.
Called when $b=new B ();
$b method of->a ();
$b the attribute in->a = 1;
$b method of-
Workaround:
1. Locate the Cmd.exe file (C:\windows\system32\cmd.exe)
2. Right-click Cmd.exe to run as Administrator
3. Place the Php_memcache.dll in the PHP ext directory:
4. Add a line on php.ini: Extension=php_memcache.dll
5.cmd Enter the
in recent months, the project has been built under the NGINX environment, hereby record the relevant contents of the configuration file, in case of a rainy days, welcome to Vomit Groove ~ ~
Detailed configuration information please consult the
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