Today happened to see the Arisisi site contact us inside the site of the previous version of the introduction, feel good. So it is also intended to be the site of the previous version through the form of text recorded. Hope that a few years later
If you do an online file management system, then you must first know how to read the directory and files, in fact, the function of a few lines of code can be achieved.
Output effect:
Implementation code:Copy the Code code as follows:
$dir = "d:/
Recently, because the project needs to do some processing on the remote database on a regular basis, there is a need to make a plan for what the task looks like. After the effort, finally using PHP to achieve this task, the following share the
In order to save time later, a class that operates SQL statements is encapsulated today, where it is saved and used later.
File name of this class: SqlTool.class.php
There are mainly DQL and DML two functions
Look at the following source code "
PHP obtains the verification code picture to the local, supports the PNG, GIF, JPG Three kinds of format verification code. In the implementation, PHP to determine the image format is the use of PHP built-in exif_imagetype function, it is quite
Develop a subsite with CodeIgniter, and then synchronize with the original forum, including simultaneous login and two-way communication
Install the Ucenter first, then create a new application of other, copy the generated code out, create a new
1. Run the following command in turn
Copy CodeThe code is as follows: Wget http://pecl.php.net/get/zip-1.8.10.tgz
#tar ZXVF zip-1.8.3.tgz
#cd zip-1.8.3
#/opt/php/bin/phpize (corresponding phpize path)
IIS version: IIS 8.5
Problem description
Build a test site, a total of 2 pages (index.php and 404.php), the default home is: index.php
When accessing index.php and 404.php, the IIS server responds properly, stating that there is no problem
OO programming (Object Oriented programming, OOP, object-oriented programming) is a computer programming architecture, and one of the basic principles of OOP is that a computer program is composed of a single unit or object that can act as a
During an interview with an empire, the question was: how to deal with the problem of post-commit duplication, and later with the @ Warm Yang communication, he said the record time, I do not understand, I think is the table in the form page record,
How to convert the following two-dimensional array to a one-dimensional array.
$msg = Array (
Array
' id ' = ' 45 ',
' Name ' = ' Jack '
),
Array
' id ' = ' 34 ',
' Name ' = ' Mary '
),
Array
' id ' = ' 78 ',
' Name ' = ' Lili '
),
);
1 Solution:
Introduction: Just want to achieve a simple Ajax upload data, but when the amount of data is large, the problem is one after another, in fact, the data is not very large, is the CSV format data less than 5w data. Size 5M, at first think this is very
When you write a website, you may encounter this situation, is to write a form, this form is used to add an article, we fart in the background to receive data, and then into the database. Now there's a problem. What do you do when you want to make
php when the Chinese string interception, will often use two functions iconv_substr and MB_SUBSTR, the two functions should be how to choose it? Refer to the examples described in this article to understand.
Example code, using the function substr
The first is the design of the database. The classification table is called Cate.
I do the classification data of the two-level linkage, the data required fields are: Id,name (Chinese name), PID (parent ID).
Parent ID's setting: If the data does
Part of MVC:
Models (model)Represents your data structure. In general, your model class will include the ability to remove, insert, and update your database data.Views (view)Is the information displayed to the user. A view is usually a Web
Recently, a PHP project used to limit the logon time function, such as the user login system 60 minutes after the automatic exit without action, I searched the network collected the following methods are available for reference.
The first method is
This feature was raised at the time of Php5.0x and was later canceled and implemented in PHP6. And this time again "advance" to the PHP5.3 release, it can be seen that the developer of its attention and cautious attitude.
The description of 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