Today, the installation cacti found that the PHP sockets extension is required, and now the LNMP is not installed, so I thought of the Phpzie tool installation extension, installation method is as follows:
Open Sockets extension in Linux
Linux system
1,/usr/local/nginx/conf/nginx.confModify
Client_max_body_size
2,/usr/local/php/etc/php.ini
Modify
Post_max_sizeUpload_max_filesize
3, restart Lnmp/root/lnmp restart
Windows system
The default post_max_size for PHP is 2M. If the
What is Hessian?See this word I still do not know how to read, the phonetic transcription is [hes] read Hesse.Hessian is a lightweight, remote data Exchange tool that provides the functionality of RMI (remote method invocation) using simple methods.
PHP file_get_contents read the remote file and output, so good to do is not in the Flash playback code to display the other side of the site's file address, the following is my own use of a. It's for the reader's video file.
Require_once ("s/s.php")
php Calendar Code
Day Two Three Four Five Six
?@date_default_timezone_set (' +8 ');
function Week2day ($STR) {$days = Array (' Mon ', ' Tue ', ' Wed ', ' Thu ', ' Fri ', ' Sat ', ' Sun ');Return Array_search ($STR, $days) + 1;}
To avoid errors caused by duplicate inclusion of files, add a condition that determines whether a function exists:if (!function_exists (Pageft)) {/function Pageft ($totle, $displaypg =20, $url = ') {
Define several global variables:$page: current
PHP reads a two-dimensional array, and today it's a problem when you're writing a multiple file upload. Let's give an example to illustrate, please see the following topic.
$a 1 =array (' A1 ', ' A2 ', ' A3 ');$b 2 =array (' B1 ', ' B2 ', ' B3
Deletedir ($dir)//This delete file and directory code can be placed in the win Lin U system Delete,
{
if (RmDir ($dir) ==false && is_dir ($dir)) {
if ($DP = Opendir ($dir)) {
while (($file=readdir ($DP))!= false) {
if (Is_dir ($file) && $file!= '. '
The CI framework configures rewrite on the nginx server to remove index. php:Vim/usr/local/webserver/nginx/conf/nginx. confInstance configuration code:Server {Listen 80;Server_name www.111cn.net;Index index.html index.htm index.
When writing PHP regular expressions, the modifier of the regular expressions is usually defined /, the trouble caused by the definition of "/" is that if the regular expression contains "/", the escape character must be written as "\/", which makes
Insert a paging character in fck, as shown in the following figure.Paging code Function pagebreak ($ content){ $ Content = $ content;$ Pattern = "/ /";$ Strsplit = preg_split ($ pattern, $ content,-1, preg_split_no_empty );$ Count = count ($
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