First, blacklist filter
Second, random color generator
Third, download the file from the Internet
Set_time_limit (0); Supports all file types//urls here: $url = ' http://somsite.com/some_video.flv '; $pi = PathInfo ($url); $ext = $pi ['
In order to avoid other people to the non-filing of the domain name resolution to their server IP and the server is broken network, you need to set the Nginx on the IP access to the server, only through the domain name access. The most critical
Openssl_public_encrypt ()-encrypts data with public key
Openssl_public_decrypt ()-decrypts data with public key
Openssl_private_encrypt ()-encrypts data with private key
Openssl_private_decrypt ()-decrypts data with private key
Openssl
OpenSSL
in the C language, strings are processed as byte arrays. In the Java language, strings are processed as objects. PHP, in turn, handles the string as a basic data type. Usually the processing of strings involves the formatting of strings. The
The reason for the error is that the PHP mcrypt extension is not installed, but it uses the constant of the encryption method defined in the extension
Workaround: Install the MCrypt extension
Specific steps:
1. Open the command line installation
Usage Scenarios
First look at the following code:
Abstract class Base { //do sth}class AClass extends base{public static function create () { return new AClass () ; } }class Bclass extends base{public static function create () { return
The example in this article describes the method of PHP floating-point comparison size. Share to everyone for your reference, as follows:
';//echo $c. '';//output will be displayed as 0.55 actual value is smaller than he//so direct and 0.55
Installation Dede utf_8 times a fatal error and warning, finally can not display the site background and home. The error is as follows:
Login Home Display: Fatal error:call to undefined function parcv () in/include/dedesql.class.php on line
Include include_once require require_once is a syntax structure, not a function, which differs from file duplication in loading file errorsInclude ";Include (");
In the include syntax for PHP, if no path is given and only the file name, the
Data collection-Upgrade Nginx server, add HTTPS process problems encountered
tags (space delimited): Blog DevOps
Operation and maintenance students to help the server with SSL certificate, after modifying the Nginx conf file.
In the local test to
Classic Sort algorithm-bubble sort bubble sort
The principle is that the adjacent number 22 is compared, in order from small to large or from large to small to exchange,
After such a trip, the largest or smallest number was exchanged to the
PHP Header Certification
// User name and password for authentication$username = 'rock'; $password = 'roll'; if (!isset($_SERVER['PHP_AUTH_USER']) || !isset($_SERVER['PHP_AUTH_PW']) || ($_SERVER['PHP_AUTH_USER'] != $username) ||
In the previous blog, we abstracted the base class of the controller, implemented the rendering of the page and the function of returning the JSON string.
What do we lack now as a framework? Yes, we should have noticed that we have never connected
1: Modify/usr/local/nginx/conf/ngnix.conf, red font to add content.
#rtmp直播配置server {Listen 1936;Chunk_size 4000;Application Live {Live on;HLS on;
hls_path/usr/local/nginx/html/multimedia/hls/live;
hls_fragment 2s;Hls_playlist_length 6s;}}
server
This example describes the PHP method for calculating the maximum minimum latitude and longitude of 4 corners in the current coordinates of 3 km. Share to everyone for your reference, as follows:
$LNG, $lat latitude and longitude $half = 6371;
1: First step to start the Nginx folder traversal function
Vi/usr/local/nginx/conf/nginx.conf #编辑配置文件, add the following under HTTP {:
AutoIndex on; #开启nginx目录浏览功能
Autoindex_exact_size off; #文件大小从KB开始显示
Autoindex_localtime on; #显示文件修改时间为服务器本地时间
PHP Beginner's operator
Operations must have results
One, arithmetic operators
1, +-*/; corresponds to the subtraction in mathematics, similar to $a= $b + $c is not affected by the value type when dividing
2,%; redundancy, modulus; the remainder is
This article reprinted address: http://www.manongjc.com/article/515.html
The PHP explode function uses one string to split the other string, and the split string is combined into an array, and the array is returned. This article introduces to you
More please poke: http://www.webyang.net/Html/web/article_242.html
The previous time configuration php-fpm, inadvertently found that he still has two ways of execution. Like Apache, his number of processes can be divided into dynamic and static
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