Use PHP to maintain the file system. PHP has many file system-related functions that not only help you open files, but also display directory content and move files. Many people even use PHP to write a Web-based file manager. PHP has many file
The original code of PHP_Flame (Version: Progress. Some information about IPHP_Flame (Version: Progress: * fixed the BUG where files cannot be downloaded * fixed the BUG where the parent node could not be returned * fixed the BUG in code editing ....
Section 3 defines a class [3]. When you declare a class, you need to list all variables and all functions of the object-called attributes and methods. 3.1.1 shows the composition of a class. note that in braces ({}), you can only declare a class,
A very convenient XML class !! Original Oh .? I am not familiar with XML, and may have incorrect description of XML. this is just an idea. to implement this, I should slightly trim it. I can save some data that is not frequently used in condition
The PHPstrstr function is used to determine whether a string exists. Define and use the PHPstrstr () function to search for the first occurrence of a string in another string. This function returns the rest of the string (from the matching point ).
Ten PHP coding tools worth noting. We often get frustrated when we often have to deal with tedious and repetitive tasks such as manual code testing and deployment, but we have been trying to become highly efficient. This article is intended to be
NginxPHP returns 200, but a blank page is displayed. After ngxin; php-fpm is installed, there is no problem with html static pages. However, although the phpinfo page returns 200, no error is reported for blank pages, it should be considered that
The blank nginxphp page fastcgi_param. After nginx is installed today, you will find that the html page can be viewed normally. However, after the page of the php file is opened, the page is blank. you can view the php-fpm log, and check the nginx
Implement telnet in php
Use php to implement telnet connection, pass commands, and obtain return values! Telnet. php
Error_reporting (-1 );
Class Telnet {
Var $ sock = NULL;
Function telnet ($
PHP obtains the real IP address, even if it uses a proxy
[PHP] code
Function getRealIpAddr ()
{
If (! Empty ($ _ SERVER ['http _ CLIENT_IP '])
{
$ Ip = $ _ SERVER ['http _ CLIENT_IP '];
}
Php determines the access IP address
Determine the access IP address Php code
Function getIP (){
If (! Empty ($ _ SERVER ["HTTP_CLIENT_IP"]) {
$ Cip = $ _ SERVER ["HTTP_CLIENT_IP"];
} Else if (! Empty ($ _
A versatile php image processing class
Image processing function functions: scaling, cropping, photo frames, watermarks, sharpening, rotation, turning, transparency, reversed colors, and ideas for processing and saving historical records:
PHP obtains code for last week, this week, last month, this month, this quarter, and the last quarter.
Echo date ("Ymd", strtotime ("now"), "\ n ";
Echo date ("Ymd", strtotime ("-1 week Monday"), "\ n ";
Php determines whether a visitor is a search engine crawler
We can use HTTP_USER_AGENT to determine whether it is a spider. search engine spider has its own unique logo. The following column takes a part of it.
Function
Long Weibo generation tool PHP source code growth Weibo Image based on text
Error_reporting (7 );
Define ('root', getcwd ());
Define ('basedir', parse_url ($ _ SERVER ['request _ URI '], PHP_URL_PATH ));
If (
Summary of encryption functions in php
This article introduces some functions related to encryption in php. if you need them, refer to it.The encryption function in php is similar to the following: 1, md5 () 2, sha1 () 3, crc32 () 4, crypt (
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