Now the CMS basically support the article generated HTML, the benefits of generating HTML static Web page does not have to say, whether it is the page to open the browsing speed, or conducive to search engine optimization seo, there are obvious
Here are a few function references for you.
Example one:
Copy the Code code as follows:
function Deletedir ($dir) {if (!handle= @opendir ($dir)) {//detects if the directory to open existsDie ("No such directory");}while (False!== ($file =readdir
1. Pear Introduction
pear:php Extension and application repository,php extension and application library. (Suddenly want to eat pear) pear Mission: To provide reusable components, leading the innovation of PHP. Packages and applications that provide
PHP can also detect access to Windows memory information, and the code is quite simple, no intention to find, think later can be used, here to share with you.
This code will get the total memory, initial use and other memory information:
01
02echo "
Complex data types that are stored in resource variables typically require some memory allocation, CPU time, or network traffic when initializing. However, it is necessary to persist a resource that is similar to a database connection between
The cache is widely used in practice, which can reduce the access to the server database and improve the running speed. At present, many CMS content management systems frequently use caching mechanism to improve the efficiency of system operation.
the code in 1.view is as follows:
the code in 2.controller is as follows:
if (isset ($_files[' batchfile ')) && $_files[' batchfile ' [' Error ']==0 ]
{
spl_autoload_unregister (Array (' yiibase ', ' autoload '));//Logout of Yii automatic
The combination of two arrays in PHP can use + or array_merge, but these two are still different, it is clear to understand the difference between the two approaches to the rapid development of the project is still very necessary.
The main
Changing the size of a picture is a common feature requirement, and the following is a look at how PHP changes the size of a picture. Let's start by describing a function that you write yourself.
Imagecopyresampled
There are a number of ways to get the suffix of a file, as described below.
The Strtolower () function converts a string to lowercase.
The Strrev () function reverses the string.
The Strpos () function returns the position of the first
Since it is necessary to determine if the uploaded file has been modified, the MD5 value of the uploaded file needs to be recorded, and the method of obtaining the MD5 value of the file is recorded here.
if (Isset ($_files[' Multimedia ')) &&
PHP's unique syntax mixes C, Java, Perl, and PHP's self-innovative syntax. It can perform dynamic Web pages more quickly than CGI or Perl. Dynamic pages made with PHP are embedded in HTML documents to execute, compared to other programming languages,
Work a year, harvest a lot, slowly do some summary, improve work efficiency,
The time to work with MySQL is a Unix timestamp: from January 1, 1970 0 o'clock to the current time in seconds, due to the int type, it is convenient for computer
As a qualified PHP development framework, the individual feels the need to meet at least the following points.
First, crooked stick throws, good framework to have a good coding standards and file directory structure, the code should be easy to
When importing MySQL database with phpMyAdmin, my 19M database cannot be imported, which indicates that the MySQL database can only import 2M.
phpMyAdmin Database Import Error:
You probably tried to upload too large file. Refer to
In a PHP program, how to tell if a Web request is an AJAX request or a normal request? We often have such a problem in the project, the browser can directly input the address of my Ajax submission, the browsers will be able to directly request data
All the time, the app wants to push Android push by provinces and cities, only analyze the user's latitude and longitude and send tag.
Now finally there is a service provider.
Friends of the Union message push can be "push by the province", very
How to open php file?
In fact, PHP files are nothing special, and text document. txt is different from the suffix name. So, of course, open PHP files can also be used in Notepad, but directly with the Notepad software to open the PHP file can only
I recently study the source of learning Phpcms, has been studied fast for a week, the following combination of online search for some research PHP open Code Program analysis methods and their own ideas to share how to study the method of PHP code
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