One step in a personal blog implementation: Adding an editor

We all know that in the process of building a personal blog , we want to implement a page to write articles, this page has to support the function of editing and formatting text, then the implementation of this feature is a ready-made plug-in can be

Nginx Error Summary

1. Upstream timed out (110:connection timed out) while reading response headers from Upstream This situation occurs mainly in the following two scenarios: A. Nginx as a proxy, you need to properly adjust the value of the proxy timeout.

Integer type and conversion of PHP

JS data type: String, Number, Boolean, array, object , Null, Undefined Data Types for PHP Base type (scalar type): Integer: int integer Floating point number: float double Strings: String Boolean type: BOOL Boolean Composite type: Arrays:

PHP sends custom data through the header

This article describes how to send custom data through the header. When sending a request, in addition to using the $_get/ $_post send data, you can also put the data in the header to transmit the past. Send header: We define three parameters,

Linux installation Redis service and PHP redis extension

Please support: http://www.webyang.net/Html/web/article_174.html One: Redis installationDownload, extract and compile Redis with: $ wget http : //download.redis.io/releases/redis-3.0.4.tar.gz $ tar xzf redis - 3.0 . 4.tar . GZ

PHP page Encoding Setup method

Output met a label: 1, in the PHP MVC controller or PHP page echo 'metahttp-equiv="content-type"content="text/html; charset=utf-8"> 2. On a PHP page or HTML page metahttp-equiv="content-type"content="text/html; charset=utf-8"> Using the header

Merging and Sorting in PHP (merge sort)--analysis of algorithm principle

Merge sort: Time complexity of ~o (NLOGN)--also known as Merge Sort The merge (merge) Sort method combines two (or more than two) ordered tables into a new ordered table. That is, the ordered sequence is divided into several ordered sub-sequences,

PHP Shuffle functions

Definition and usageThe shuffle () function rearranges the elements in the array in random order.Returns TRUE if successful, otherwise FALSE is returned.Note: This function assigns the new key name to the cells in the array. This will delete the

The use and verification process of Yii Verification code

yii

If you want to implement this process, you need a few steps. The first step is the controller's operation. Add the following code to the controller you want to manipulate: Public function actions () {return array (//CAPTCHA action renders the

9 tips to make your WordPress website run faster

1. Select a good host Try not to use a free host or a shared host (GoDaddy, bluehost, etc. so-called unlimited bandwidth, unlimited sites and other hosts)First of all, your domain name and your host is best in an IDC where, if not, it is

PHP manipulating Excel files, importing data from Excel into the database

idea One: use an XML file to save a column in Excel from a field in a datasheet, and then add data through an XML file idea two: The first row in Excel saves the field name, and the other rows save the data Three ideas: the column in Excel

When CodeIgniter encountered the solution of 404 error of Nginx report

Since CodeIgniter was originally designed in Apache, and Apache is a good support for pathinfo, everything is nice. But when you put the written code on the Nginx, dumbfounded, probably out of the codeigniter of the welcom, the others are 404 errors.

thinkphp Study notes 2

First, the 3.2.3 database classes and drivers are rewritten with PDO ( ensuring that your server environment opens the PDO extension ), so no matter what the database is based on PDO, Db_type no longer supports PDO settings. You must use the actual

PHP WeChat share, QQ share

Http://ossweb-img.qq.com/images/js/WXJssdk.js "> Share initializationWxjssdk.init (function (WX) {Share to FriendsWx.onmenushareappmessage ({Title:shareData.tTitle,Desc:shareData.tContent,link:sharedata.wxtimelinelink+ "? Adtag=tgi.share.wx.message

Configuration of Apache Virtual host

ApacheConfiguration of the virtual host * Condition: include httpd-vhosts.conf in http.conf * # Virtual hosts Include conf/extra/httpd-vhosts.conf * Configured in httpd-vhost.conf * (1) IP-based virtual host * Modify the Hosts file to add 3 domain

PHP methods for Preventing SQL injection (2)

If the user enters a query that is inserted directly into an SQL statement, the application is vulnerable to SQL injection, such as the following example: $unsafe_variable$_POST['user_input'];mysql_query("INSERT INTO table (column) VALUES

Issues caused by using references in foreach

Don't say much nonsense, just look at the following code: $arrarray('a','b','c','d'); foreach($arras &$v){} foreach($arras$v){ var_dump($v); } After running, the results are as follows: string'a' (length=1)string'b'

PHP entry String, cookie,session

String Gets the length of the string: strlen () functionGet Chinese text long echo mb_strlen ($str, "UTF8"); English string interception$str='i love you';Capture the letters of loveEcho substr ($str, 2, 4);//Why the starting position is 2,

Use the back key to/historyback the "Warning: Web page has expired workaround"

 Reason:The Session_Start function is used in the form submission page. Since we are back browsing the cached page, the function forces the current page not to be cached. Add another sentence: the author found that the post and get have a

PHP Fuzzy Query Instance code

Header ("Content-type:text/html;charset=utf-8"); Get User Data $keywords =$_post[' keywords ']; // connecting to a database $c or Die (' Database link failed '); Selecting a database, setting the character set mysql_select_db (' Search '); Mysql_set_

Total Pages: 5208 1 .... 2236 2237 2238 2239 2240 .... 5208 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.