PHP (2) Common functions record some common library functions and common syntax for reference
I. PHP Manual
Php manual Chinese address http://php.net/manual/zh
II. some common operations
2.1 string operations
2.1.1 strpos-locate the first
PHP multi-process programming (2) pipeline communication if a process is a personal heroism, then multiple processes are collectivism. (Do not strictly distinguish the differences between multi-process and multi-thread)
You are no longer a lone
Use the Entrust extension package to implement RBAC permission management in Laravel5 (II): in this article, we discussed how to install and configure Entrust in the previous tutorial. in this article, we will discuss in detail how to use it.
1.
Use PHP for development and use sample code, but cannot receive xml forms such as questions,
I'm trying to use PHP for public account development,
The sample code is used,
TOKEN verification successful,
You can receive "Welcome to wechat world !"
Use of laravel5 middleware (1) use of laravel5 middleware (1)
1. create middleware
Php artisan make: middleware _ Name_Middleware
2. Register middleware
2.1 middleware registered in Kennel. php
2.2 By default, it is stored here and will be
Php extension cannot connect to the memcached server, online, etc. please kindly advise! The memcached server is also installed.
Php extensions are also installed
But can't I connect to the server using code?
Php. ini is configured
Startup and shutdown of phpfastcgi (spawn-fcgi) in Ubuntu
spawn-fcgi -a 127.0.0.1 -p 9000 -C 10 -u www-data -f /usr/bin/php-cgi
Note:
-A 127.0.0.1: PHP FastCGI binding IP address
-P 9000: PHP FastCGI specified port
-U www: PHP FastCGI user
Ask how to return data to the user half the time, end the network connection, and continue computing on your own. 1. the user submits the request
2. the server returns the result to the user after fast computing and ends the network connection.
Use of PHP closure functions
# Use of the PHP closure function anonymous function is also called the closure function (closures allows you to create a function that is not specified and is most often used as the value of the callback function
The php framework slim architecture has the XXE vulnerability (a typical form of XXE). [this is the New Year's Eve. I published a previous inventory article every day for a total of seven articles .]
The emergence of the modern cms Framework
[Laravel5.2 documentation] service-localization
1. Introduction
Laravel's localization feature allows you to easily implement multi-language support in applications.
The language string is stored in the resources/lang directory by default. the
PHP namespace Category name use framework automatic loading mechanism from php 5.3, PHP has many main features such as namespace/latency static binding/lambda anonymous functions
Namespace references further improve the flexibility and
PHP regular expression matching summary the PCRE pattern is a PHP regular expression matching rule.
It must be enclosed by delimiters (separators can be any non-alphanumeric, non-backslash, and non-blank characters), which means preg_macth ("[\ w {2,
Original PHP database operations
// This is a tool class to complete database operations;
Class SqlHelper {
Public $ conn;
Public $ dbname = "exam ";
Public $ username = "root ";
Public $ password = "123 ";
Public $ host = "192.168.1.100 ";
//
PHP design pattern series-Resource Library pattern (Repository) 1. Pattern Definition
Repository is an independent layer between the domain layer and the data ing layer (data access layer. Its existence makes the domain layer unable to feel the
PHP variables, data types, and scopes. Directory [1] variable definition variable assignment [2] data type string integer floating point number Boolean array object NULL resource [3] scope globalstatic
Variable definition
A variable is the container
Use PHPMailer to send PHP emails # reprinted from: Rookie on the cloud # use PHPMailer to send PHP emails
1. first download PHPMailer
Http://code.google.com/a/apache-extras.org/p/phpmailer/
2. extract
Take out class. phpmailer. php and
How does one implement the entire and half-point execution tasks in linux? How does crontab-e in linux set the whole and half-point execution tasks?
It is to execute a task every 30 minutes at the hour, such as and.
Reply to
The CSV file is read in the following format:
"11111"; "1111111"; "2324242"; "66 dggdgg" LF (line feed)
"Sdfsfsdfsdf"; "sdfsdfsdfsfd"; "sdfsdf cr lf (line feed) sfsdf"; "sdfsdfsdfsfsf" LF (line feed)
The problem is that the field content
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