For operational reasons, additional downloads are required in the original Nginx server to add the following configuration to the server configuration in nginx.conf:
The directory of the downloaded files is placed under download under the project
Today, look at Sina Weibo, found that their picture is with the scroll bar down, the picture with the load, the search from the Internet. found that most of the online, the code, are the same. Do not know, this implementation method, optimization
PHP text characters garbled, Chinese characters in the library garbled problem
When writing Chinese character data to the database, there will be garbled, that is, when you use MySQL query, all are some??? Such a character.The source of this is
The effect of the show to see this siteJob VacanciesPlates andmember ShowPlateInstallation Method+----------------------------------+1. Go to [Backstage]-[forum]-[classified information]-Import the corresponding XML file2. Enter [Backstage]-[forum]-[
The Yang Hui triangle is an indispensable tool for calculating the coefficients of the two-item-exponent-expansion, and is a triangular number arranged by numbers.Effects such as:Information: Yang Hui the 1th of the nth row of the triangle is 1, the
I believe that we have encountered changes in the Discuz plug-in title, keywords, description problemsSome plugins are called header.htm files by default.
Copy Code sometimes with some plug-ins will not show the title, the
example, PHP implementation of the Yang Hui Triangle code.
error_reporting (0);
$iLine = 5;
Function of output Yang Hui triangle
function Yanghui ($iLine)
{
for ($i = 0; $
example, according to the Yang Hui triangle "each number equals the sum of the left and right two numbers of the previous line".
Error message
Error_reporting (E_all & ~e_deprecated & ~e_notice);
Sometimes we show the content is for the search engine use, a lot of users do not have to see, so the following share the PHP code, spider Normal Crawl, user access to reverse the specified page code
$v = false;
$tmp = $
First locate the config.php file under the Conf subdirectory in the common directory in the project files directory
Add the following code:
' Db_type ' = ' PDO ',
' Db_user ' = ' root ',
' Db_pwd ' = ' database password ',
' Db_prefix ' = ' think_ ',
example, PHP generates random strings that can be specified as pure or pure letters or mixed, and can be specified in length.
Generate Random string
function Rand_zifu ($what, $number) {
$string = ";
PHP Download file functions
Set_time_limit (24*60*60);
if (!isset ($_post[' submit ')) Die ();
$destination _folder = './down/'; Folder to save the downloaded file. Must
Forum does not return top features add code inside your footer.htm (/template/default/common/)
{lang scrolltop}
Copy Code1. Get your favorite "back to Top" icon, upload overlay discuz original icon① get their favorite
Many people do not see the WordPress editor, because the available features are really less pathetic. Because often to insert various code in the article, in the previous use of the editor enhanced Plug-in "CK and Syntaxhighlighter" This editor is
In programming languages, the number of daffodils is a number of n (>=3) digits, which equals the sum of the n power of each number. For example, 153 is a number of daffodils, 153=13+53+33. Write a program to solve the number of all daffodils less
Example 1, a direct loop to print out the Yang Hui triangle.
Yang Hui Triangle
for ($i =6; $i >= 0; $i--)
{
for ($j = $i; $j
{
if ($j
{
echo "a";
}else
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