Used to display error messages and success messages, you can actually echo the error message directly, here I just want my error message page beautiful point, defined a page output function.
Copy the Code code as follows:
savecomment.php//people
Download the latest smarty:http://smarty.php.net/
Current Latest Version: 2.6.18
After decompression, rename the Libs directory in the directory to smarty, copy to your site directory, and build templates and Templates_c two directories under the
While Ajax supports UTF8
OK, first add a header to the PHP page ("content-type:text/html; Charset=utf-8″);
The code that tells the page this implementation is UTF-8
Then the content to be output with $test = Iconv (' GBK ', ' utf-8′, $test); turn
Copy the Code code as follows:
Establish an index to the new COM component$word = new COM ("Word.Application") or Die ("Can ' t start word!");Displays the version number of the word that is currently in useecho "Loading Word, v. {$word->version}
The program uses the php zip extension, if the server supports, that can use the ^_^, the generated zip compression package can be extracted with winrar and so on, of course, can also be extracted with PHP. The decompression time has been released
[Code]
User Information
######################################################################## Connecting the database #############################################################################$db =mysql_connect ("192.168
The previous article, "PHP calls MySQL stored procedures," was tested and found that the method in the article does not seem feasible!
Calling a stored procedure with a SELECT statement appears PROCEDURE P can ' t return a result set in the given
Mainly provides a way of thinking.
$lock 0 and $lock1 are file-locked identifiers, and when a file is opened by a user, $lock 0 and $lock1 are generated and do not exist when the file is not open.
In fact, the key is to have an identifier to
Copy CodeThe code is as follows:
$perpagenum = 10;//definition shows several pages per page$total = Mysql_fetch_array (mysql_query ("SELECT count (*) from a"));//Query the database for the total number of data$Total = $total [0]; //$Totalpage =
1, if the method of the class can be defined as static, as far as possible to define as static, it will increase the speed of nearly 4 times times.
2. The speed of $row [' ID '] is 7 times times that of $row[id].
3. Echo is faster than print, and
Array_unique (PHP 4 >= 4.0.1, PHP 5)
Array_unique--Removes duplicate values from the divisor group
Description
Array array_unique (array array)
Array_unique () accepts the array as input and returns a new array with no duplicate values.
Note The key
Collect and remove links
Copy the Code code as follows:
{Dede:trim}] *) > ([^
————————————————————————————————
Let Field:title title break through 30 This length, modify the Code method
Find the./include/inc_arcpart_view.php
Line 291:
if ($titlelen
In the past with Dede collection, always filter not off more than one line of code, only a row of filtering, on the Internet, found there are many and I like the rookie. With the constant use of Dede acquisition, there is a further understanding of
Then the above began to wp-config.php,wp-settings.php these two files, wp-config.php so the name of the configuration file so there is nothing to explain.
The wp-settings.php function wp_unregister_globals is used to unregister automatically
You can use this collection first and then use the Empire to process
####################################################################################
#作者: 9elong
#网站: A small personal station
#时间: 2007-01-01
#声明: Used only for PHP learning.
#功能:
Due to version compatibility and other reasons, in fact, DEDECMS index is a bit confusing, if the index is set to fit, affect the dedecmshtml generation speed, mainly to get the list of articles not by default sorted by the time, due to reorder, the
The following are turned around, but only to complement its official shortcomings, in fact, it does not talk about the function of the disaster, hehe, keep the first
1, in the article list, some of the title has been truncated, how to use the point
This is the target URL we're going to collect.
-------------------------------------------------------------
Let's see how pagination is set up.
---------------------------------------------------
There's something more out of the title.
--------
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