Today to move the WAMP project to the lamp environment, here are the steps and problems encountered
Online Lamp Environment Building tutorial, according to this I was not installed successfully, below is the online tutorial and I encountered
This article is about the complete installation configuration process for using MongoDB under CentOS.
Replace the Yum source
We want to install it through Yum, so it's quicker to compare, but the CentOS default Yum environment doesn't have what we
Usage Environment:
You can use define to define constants in PHP, but you cannot use define in a class, and in a class, the values of some properties do not want to be modified, and we need to use Const to define constants.
How to use:
1, the
$dir = DirName (__file__); The folder where the current file is located, with the directory name to traverse
$dir = ' D:\PHP\wamp\www\admin\hosts\admin ';
PHP iterates through all the files in the folder
$handle =opendir ($dir. ".");
$arr = Array ();
Version_compare(Php_version, ' 5.2 ', ' >= ')? True:die ('
Critical Warning: PHP version is less than php5.2!
#获取php版本并对php版本判断 zhphp Frame Minimum ph version is php5.2######################################## gzip compres start ##########
Instructions for use
1. Nginx installation of LUA extensions
2. Modify the configuration Nginx configuration file
Set $salt "Cmstopsalt"; MD5 key string
Set $expire "2"; Expiry time
Set $timeType ' seconds '; Expiration time type
Today, after the server has been migrated, the foreground can be displayed and called Normally, login background display 500 error, generally in this case to see the core jump file, the view found login.php file did not call. Because the login.php
Because RABBITMQ is implemented by the Erlang language, you first install the Erlang environment
Erlang Download Install http://www.erlang.org/download.html
RABBITMQ Download Install https://www.rabbitmq.com/install-windows.html
The AMQP Extension
If life deceives you, brother even understands you! --php Training School
The woods are big what birds have, recently, online heat transfer: Marriage after the wife is a man. Instantly feel the world is full of malicious, no longer dare not easily
/** * The value is rounded (Reserved 2 decimal places) after formatting into the amount of the form * * @param num Value (number or string) * @return amount format string, such as ' 1,234,567.45 ' * @type String * /function FormatCurrency (num)
Judging pinned articles
The Is_sticky () function is used to determine whether an article is a sticky article.
Usage
Is_sticky ($post _id);
Parameters
$post _id
(integer) (optional) The article ID to be judged, which by default is the current
Reprinted from: http://my.oschina.net/u/573270/blog/423238
U.S. time November 13, 2014, the PHP development team, on "php 5.6.3 is Available|php:hypertext preprocessor" announced the latest version of the PHP5.6 department "php 5.6.3".
The latest
Just came to the company in the morning, the head told me, grasp to write a small function, used to count the file size in the specified directory, I went, do it, fortunately a little foundation, a will be completed, haha. The code is
This article describes the PHP attachment download Chinese name garbled solution. Share to everyone for your reference, as follows:
In PHP, if the file name you want to download is in Chinese, the file header will appear garbled.
At this point, you
PHP winning probability algorithm, can be used for scraping cards, large turntable and other lottery algorithm. The usage is very simple, the code has the detailed comment explanation, can understand at a glance
Php/** Classical probability
The example in this article describes how PHP exports generate word. Share to everyone for your reference, as follows:
PHP Export Word
(1) First, preview the HTML page, instantiate the object, define the data to be exported(2) Click on the download
When hackers invade a server, the first "casing", where the "casing", refers to the server running in the details of some services, such as: Version number, when the hacker knows the version number of the corresponding service, you can look for 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