Apache restricts php files under a directory from executing permissions

For security periods, sometimes we need to restrict certain directories under the site from being executed for PHP scripts.There are two ways to refer to:1. Using the. htaccess file limitIn the directory where you want to restrict PHP execution,

Apache Log Cutting

Apache is still relatively cool, with its own Rotatelog program, edit the Apache master configuration file, the following changes:Comment out the following two linesErrorlog Logs/error_logCustomlog Logs/access_log CommonThen add the following two

The command space of the Django URL

To avoid using the hard-coded URL in the template, you can use the {% URL%} template label to resolve{{ task.name }}可以用以下方法替换{{ task.name }}注:detail是url中使用name参数定义url(r‘^(?P\d+)/$‘, views.detail,

css-Layout 1-Basic properties

css4-Layout 1-Basic propertiesProperty:DisplayVisibilityFloatClearHTML element type: Inline element, block-level elementBlock-level elements: The biggest difference: line wrappingInline element: No change number serving the Ddd serving the Ddd

JS Basic Essay

In the process of learning will always come out of the former swallowed place, the following would be learned today a bit of knowledge recorded down to facilitate later review.Data types in JavaScriptSimple (Basic) data type: number, String, Boolean,

JS Parsing xml

Appends a newline label and the specified HTML content to the current pagefunction W (HTML) {$ (document.body). Append ("" + html);}var xmlstr = ' ";Xmlstr + = ' ';Xmlstr + = ' CodePlayer ';Xmlstr + = ' 33 ';Xmlstr + = ' ';var xmldoc = $.parsexml (

Analysis of the inheritance or not of JSP interface

When the page is introduced${pagecontext.request.contextpath} is the page context path;can also use JS to achieve; equivalent:  The basic page can be written as follows code;var basepath = ""; implements the global path variable, but

jquery dynamically creates a level two drop-down menu

Create a site often need to use the drop-down menu, each time to write their own, always feel too much trouble, so wrote a dynamic generated drop-down menu function, and added the corresponding functional style and visual style. In use, only need to

jquery and $, jquery (function () {}) and (function () {}) (jquery)

1, $ is the alias of jquery, in the use of the same, the two can be swapped position.$==jquery; True$===jquery; True2. JQuery (function () {...}) and (function () {...}) (JQuery)First, $ (document). Ready (function () {...}); > jQuery (function () {.

Positioning of CSS

First, the situation to import;Normal document Flow: Refers to the way the HTML document behaves from left to right, top to bottom, when the content is being laid out. Most of the elements in HTML are in the normal flow of documents, and the only

Using MVC in WebForm

Http://www.cnblogs.com/encoding/articles/3556046.html************************************************************* Objective Pinch refers to a count, 3 years did not write Bo, good lazy said ... As we all know, MVC is now more

The object in JS

6, JS inside the object and other languages are not the same, it through two objects (constructor object and prototype object) to complete the definition of object function;1View Code7. Any constructor contains a hidden attribute __proto__, which

Using Redis storage for PHP

1. Installationwget Https://codeload.github.com/phpredis/phpredis/zip/develop-o Phpredis.zipMV Develop Phpredis.zipUnzip Phpredis.zipCD Phpredis-develop/usr/local/php/bin/phpize./configure--with-php-config=/usr/local/php/bin/php-configMake && make

JS drag-and-drop implementation

Code reference drag document The other one (turn) Test Dialog This is a draggable test. JS drag-and-drop implementation

The use of JQuery Mobile's swipeleft

Today to use Swipeleft this event, and then looked for the official jquery mobile documents. Then I made a right-sliding extension in it, which can be used normally. But there is a problem, swipe to the right, and then swipe left to not react. But

How to debug in PHP?

For example, there are arrays:$arr = Array (' A ' = = ' Bobi ', ' B ' = ' hehe ');Echo $arr; Array only prints out the variable type (normal output)Print_r ($arr); Array ([A] = Bobi [B] = hehe) Not only prints the variable type but also prints the

Ajax Send ()

Reprint: http://www.cnblogs.com/shitianzeng/articles/2318999.htmlIn general, parameters that are submitted using Ajax are simple strings that can be written directly to the URL parameter of the open method using the Get method, where the parameter

Route selection for Angular.js

In a single page, we can add multiple modules so that the Web page loads the module only when it is needed. The switch of the module can basically replace the switch of the webpage, so we can realize the switch of the webpage through the switch of

The queue problem for jquery

Queues can be used as an array or as a space.Where to use:In this asynchronous operation of JS, we do not know when a JS code is loaded, and you have to protect a piece of code only one module is executed (when loading on demand)This time we need to

js-Event Delegate

Event delegates are typically used in dynamically generated elements, as follows:DOCTYPE HTML>HTML>Head> MetaCharSet= "Utf-8"> title>title> styletype= "Text/css">. Item{width:100px;Height:100px;background:#1ABC9C; } style>

Total Pages: 10629 1 .... 7186 7187 7188 7189 7190 .... 10629 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.