Name Function description
$_get[] Gets an array of variables submitted in the Get method
$_post[] Get an array of variables submitted with the POST method
$_cookie[] Obtain and set the COOKIE ID of the current website
$_session[] A unique
1:get access to the browser is considered to be idempotent
Just a single result of the same URL [same as the entire URL string exactly matches]
So when the second visit if the URL string does not change the browser is directly out of the results of
PHP has two memcache clients: PHP memcache and PHP memcached.
PHP memcache independent PHP Implementation, is the old client, from our practice has been found to have a number of problems, and less function, the properties can be set less;
PHP
The first example of the C programming Language, the Classic tutorial, co-authored by Kernighan and Ritchie, is to print a simple "Hello World". Since then, "Hello World" has become synonymous with describing the first program written by a person-no
The PHP filesystem function, the rename () function renames the file or directory, and if successful, the function returns True. If it fails, it returns false.
Statement: rename (oldname,newname,context)
Parameter description
Oldname required,
PHP uses the parameters written by the filter extension to handle static classes, welcome to use.
I hope you have a good time and use it with confidence.
* */abstract class cfilter{/*** type * @var array*/public static $var Type = Array (' GET ' =
Sometimes we need to use randomly generated username and password in the application, which can greatly improve the security of the application, generate a random user name and password in PHP can use the Mt_rand function or the RAND function, the
$hash _list=hash_algos (); Returns the list of registered hash rules
Print_r ($hash _list); Show results
Create a file to calculate the hash value: file_put_contents (' example.txt ', ' The quick brown fox jumped over the the lazy Dog. ');
Output
Note: If you are Apache Server, you should configure the php.ini file in the Apache folder
The php file upload feature configuration mainly involves Upload_tmp_dir, upload_max_filesize, post_max_size and other options in the php.ini configuration
Sometimes in order to achieve the load or other reasons, we need to put the uploaded files on the other server, because I am not familiar with the server tools, so only from the PHP program, through PHP FTP or curl to implement the upload file to
In most programming languages, the return keyword can return the execution result of a function, and the use of return in PHP is much the same, for beginners, mastering the use of return in PHP is also the beginning of learning PHP.
First, it
The first is the implementation of the plug-in management class:
* @subpackage libraries* @category libraries* @author saturn* @link http://www.cnsaturn.com/*/class pluginmanager{/*** Listen for Registered plugins * * @access private* @var
We first need to install lamp is APACHE,PHP5,MYSQL5.
Open the terminal and enter the command line.
1. Installing Apache
sudo apt-get install apache2
2. Test Apache
To determine if the installation was successful, let's test it. Open your browser
1. Use PHP in the right way to work, as much as possible to understand what you are exposed to, and if you do not understand it, ask the people around you.
2. Never stop learning, always put your understanding to a higher level, do not stagnate.
Introduction: This is the introduction of PHP and file operations related to the system functions, these functions are very important, the following tianya is still more commonly used to carry out detailed examples.
basename-returns the file name
Overview: On the way to the great god of PHP, you should keep good traditions and habits.
1. Read more manuals and source code
There's nothing more to emphasize than reading a manual – You can learn a lot of things just by reading a manual,
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