Copy Code code as follows:
– Delete multiple static pages generated by an article
– the generated article name is 5.html 5_2.html 5_3.html
/*—————————————————— */
function delstatichtml ($article _id)
{
Global $db;
$sql = "Select '
Here, it is generally necessary to encode a normal string into a format that the JavaScript unescape () function can interpret, and in PHP, for example, you can use the following function to implement the same function as the escape () function in
Compile and install PHP 5.3.3
Since php5.3.x has brought php-fpm, it doesn't need to be patched.
# sudo./configure--prefix=/usr/local/php-5.3.3--with-mcrypt--with-gettext--with-mysql--with-gd--with-jpeg-dir--
A total of two equal scale thumbnails can be used for referenceFirst, the class file, after instantiation can be usedSecond, for the custom method, relatively lightweight
class file
Copy Code code as follows:
$resizeimage = new
The main difference is that if the same key name appears in two or more arrays, the key name is divided into strings or numbers, which requires attention
1 when the key name is a number, the Array_merge () does not overwrite the original value, but
Xi. public Functions (functions.php)
Originally intended to write the analysis of Architectural page, but the building page things more, one day is not finished, and we have a lot of functions to be used frequently, the first simple introduction of
Nonsense not to say, directly to the Timeit function I wrote to share with you, the details are as follows:
/** * Compute The delay to execute a function a number of time * @param $count number of ' time ' tests would execu Te the given
Two-dimensional array ordering in PHP, you can use PHP built-in function uasort ()
Example one:
Use the user-defined comparison function to sort the values in the array and keep the index associated
The callback function is as follows: note that
We can not output the data directly, often need to extract the content, and then format, in a more user-friendly way to appear.
Here is a brief description of the main contents of this article:
One, PHP Crawl page Main method:
1. File () function
2
We want to use the Membership table structure
Copy Code code as follows:
CREATE table if not EXISTS ' net_111cnnet ' (
' id ' int (one) not NULL auto_increment,
' username ' varchar default NULL,
' Add_time ' int (one) default
The method in this article will include subscription number and service number and custom menu scenarios, regardless of whether there is advanced interface permissions, there are ways to obtain user profile, without the need to simulate login.
The
File_exists () Check whether a file or directory exists
Description
BOOL File_exists (string filename)
Returns TRUE if the file or directory specified by filename is present, otherwise it returns FALSE.
The DirName () function returns the directory
The following PHP to view the current variable type background, procedures and solutions are written out for everyone, as follows:
Solve the background
Toss process one:
Resolved the JSON Json_decode in PHP does not work without any output
As shown in code 1:
Copy Code code as follows:
Code 1
Appearance Layer Class
Class Lwordhomepage {
Add a message
Public function Append ($newLWord) {
Call Intermediate service Layer
$serv = new Lwordservicecore ();
This article describes the PHP implementation of digital verification code method, the implementation of the following methods:
Implementation effect:
The above is the use of PHP implementation of digital Verification code method, I
This article illustrates the method of PHP to calculate title title similarity ratio. Share to everyone for your reference. Specifically as follows:
\n";
? >
I hope this article will help you with your PHP program design.
This article describes the PHP implementation of simple and practical verification code class. Share to everyone for your reference. as follows:
config (' width ', ' height ', ' number of characters ', ' Verification Code Session index '); *
Let's say two ways:
1 defines a string variable that holds the list of files to be loaded. Then foreach loads.
Copy Code code as follows:
$a = '/a.class.php;/util/b.class.php;/util/c.class.php ';
$b =
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