Today, small part of the students to introduce the use of preg_replace function to the middle of a number of mobile phone numbers to replace the Chengshing number, this in many sites will have to do so, let me introduce the example method.
Regular
User login is the user entered the user name password click on the login page does not refresh and then use Ajax submitted to the background program to determine if the login successfully returned TRUE or related user information, so that the user
Recently prepared to make a few PHP Web site, so need to install a PHP server in their own computer, has not touched php,apache,mysql these things for a long time, so I stole a lazy directly under a package software called Appserv, it can be
There are several ways to open and close the error prompt in PHP you can use the relevant functions directly in the program to open an account, the other we can use the configuration parameters in the php.ini to control, the following small part to
Apmserv is an integrated PHP MySQL Apache application development environment, after installation to help me configure the environment and there are phpmyadmin, below I would like to change the root password at the same time to change the phpMyAdmin
We need to know some common sense in the study of development, such as variable naming rules is a very important habit, if you develop a good variable naming habits and you work with the team will be more receptive to you.
1. Class naming
(1) using
Talk about the use of jquery Ajax and PHP implementation of the image upload, the following I introduce the use of PHP Ajax to achieve a variety of files without refreshing upload, directly put an example of hope for the students to help.
Can be
This article to the students to introduce a PHP batch setup IIS directory instance code, I hope this tutorial will help you.
The code is as follows
Copy Code
Gets the file directory list, which returns the
An entry-level PHP basic grammar and data type article, I hope you can provide some help PHP beginners OH.
PHP basic syntax and data types:
(1), PHP basic syntax:
1, htm and PHP mixed2, a statement to; (End of semicolon)3, how to define a variable,
There are a lot of ready-made functions for sorting data, but if you want to sort the specified fields there is no built-in function, below I have sorted out some related array sorting functions to communicate with everyone to learn.
Let's not talk
To set PHP survival time we can use the Session_set_cookie_params function or modify the php.ini file Oh, the following small part to introduce.
The first method: Session_set_cookie_params
function prototype void session_set_cookie_params (int
Export the contents of MySQL database to Excel we can simply implement the MySQL export Excel file by using the header output CSV format document, let's take a look at the example below.
The core code is here.
The code is as follows
PHP generated barcode code into a barcode is the need to generate images, in PHP generated images we have to use the GD library to achieve, so you have to find your php.ini file to find Extension=php_gd2.dll remove the front; You may have used some
It should be said that the use of Phpexcel plug-ins to implement the import and export of databases, this article is mainly to tell you to import Excel into the MySQL database method.
Download First
Download Phpexcel file, address: phpexcel.codeplex.
This article to introduce the PHP and Orace database to implement the paging function of the database, the following students can take a look at it.
The code is as follows
Copy Code
Include
File name garbled is usually caused by Chinese, because CKEditor use is UFT8 encoding if we use the page is GBK or gb2312 can be garbled problem, the solution as long as the upload file rename.
Open the editor/filemanager/connectors/php directory
In the form we have a method property, he can let the form is post and get, in PHP should use the corresponding get,post to receive, let me introduce the method parameter description
1. It was used before, when the form form post commits, the URL of
Verification code can prevent some users repeatedly submit to guess the password or the use of brute force tools to guess the password, we added a verification code after they added a lot of difficulty, below I provide a program based on the session
The checkbox check box in PHP is usually done in the form of an array, so we'll store it as an array when we get the check box value in PHP, so we can do it by iterating through the array.
The code is as follows
Copy Code
Online editor FCKeditor 2.0PHP Environment trial
First, Introduction
November 30, 2004 launched the FCKeditor 2.0 RC1 version, according to its official website: This is the first stable version of the FCKeditor version 2.0. We can now consider the
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