For example, to protect the admin folder, follow these two steps:
Step 1: use NotePad to create a file. htaccess and enter the following content:
Authtype basicauth
Userfile D:/appserv/www/hill/admin/. htpasswd
Authname "hill"
Require
HH's temper is that the destination folder path does not support spaces or quotation marks, so it becomes complicated. Otherwise, a line of command is enough.
Other
Code No difficulty, focusing on Practicality
The batch processing code is as
Two Methods: directly add events to objects and add events to nodes
For example, to add an onclick event whose ID is tab1
First case:
CopyCodeThe Code is as follows: var T = Document. getelementbyid ("tab1 ");
T. onclick = function TST (){
CopyCodeThe Code is as follows: array. Prototype. Del = function (){
VaR B = {}, C, I = 0, L = This. length, J;
For (; I C = This. Shift ();
C In B? B [c] ++: B [c] = 0;
}
For (J in B ){
If (B [J]> 0) This. Push (+ j | j );
}
Return this;
}
I. node operations
1. Find nodes:
VaR $ var_1 = $ ("htmltype"); // obtain all htmltype nodes.
For example, VAR $ ul_1 = $ ("Ul ");
2. Create and append a node:
VaR $ var_1 = $ (""); // create a node.
$ ("Htmltype2"). append ($ var_1);
When "url Rewrite" is enabled in the background, everything looks normal. However, when you click a topic, the page of the Forum is still displayed. I looked at the Forum directory and found that there was no such directory. htaccess file, so the
1. The js engine performs syntax analysis when the code is loaded. If the JavaScript code is not standardized, the syntax analysis will fail. This error is called a syntax error.
2. After the syntax analysis is passed, the js engine executes the
1. Why DDoS attacks?With the increase in Internet bandwidth and the continuous release of a variety of DDoS hacking tools, DDoS denial-of-service attacks are becoming increasingly easy to implement, and DDoS attacks are on the rise. Due to business
1. Of course we need to introduce the jquery file.
2. Create a function
Var check_all = function (obj, name) {$ (": checkbox [name = '" + name + "']"). attr ("checked", obj. checked );}
3. Use
Copy codeThe Code is as follows:
select all
Sometimes, you may want to add some stuff to the page, which is limited to the differences in the browser, and the effects may not be shown. Now we can think of the browser's judgment and give different display effects based on different browsers,
Copy codeThe Code is as follows: IP = "jb51.net"
WQL = "Select * from Win32_PingStatus Where Address = '$ ip '"
WQL = Replace (WQL, "$ IP", IP)
N = 0: s = 0
Do Until n = 100
Set ob1_miservice = GetObject ("winmgmts: \. \ root \ cimv2 ")
Set
Each attribute in this object represents a changeable style attribute (such as "height", "top", or "opacity "). Note: All specified attributes must be in the form of camels. For example, marginLeft must be used to replace margin-left. The value of
:
Copy codeThe Code is as follows: Save the following code as a. BAT or. CMD batch file and double-click it to run it.
: For Base64 encryption and decryption, refer to the s11ss code.
: Reprinted, please indicate from SunTB
@ Echo off
Set "base64 =
However, prototype is used in the script. in the process of js, we found that some methods are rarely used, but some methods seem to be classic. The script library is constantly increasing... continue to get started with JS and learn about Array
Remove the official webshell: After the collection master is installed, immediately delete dedesql under the include directory. query. PHP file. If it has been installed, it may have been renamed to arc. sqlquery. class. php, find and delete it.
1. determine whether an object exists
If the following jQuery code is used to determine whether an object exists, it cannot be used.
If ($ ("# id ")){} Else {}
Because $ ("# id") returns an object regardless of whether the object exists.
Correct use:
In most cases, the database is damaged only when the index file is damaged, and the real data is damaged rarely. Most forms of database corruption can be easily repaired.
As with the previous verification, there are three methods to fix the
Looking back at fastdfsupdates, we can see fastdfs-nginx-module_v1.01.tar.gz nginx module. So we tested it on a test machine today. We are considering replacing lustre with a waste of resources!
Environment:
storage1:192.168.6.100storage2:192.168.6.
In the project, the left menu is folded and displayed, which is common in the software interface (it would be okay to copy a piece of code on the Internet. It is better to write than me, but to learn, you must have a learning spirit ^ !),
I used.
There are many jQuery plug-ins available now, which can be selected according to your project requirements. However, there are some plug-ins that are useful for almost all kinds of projects. Here we will introduce you to the 12 most commonly used
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