Let's first write a simple script and then explain the meaning of each variable.
# Touch variable
# Vi variable
The script content is as follows:
#! /Bin/sh
Echo "number: $ #"Echo "scname: $0"Echo "First: $1"Echo "Second: $2
Chapter 2 Essence Some of the features of JavaScript bring much more trouble than they do. Some of these features may cause portability problems due to imperfect specifications. Some features may generate codes that are hard to understand and modify; some features make my code style too complex and error-prone; others are design errors. Sometimes Language designers make mistakes.Most programming languages have excellent components and chicken ribs. I
[From] http://www.ixdba.net/a/ OS /linux/2010/0422/35.html
Shell may often see:>/dev/null 2> 1
Command results can be defined in the form of %>
Break down this combination: ">/dev/null 2> 1" is five parts.
1:> indicates the redirection location, for example,
The shell may often see: >/dev/null 2>1
Eg:sudo kill-9 ' ps-elf |grep-v grep|grep $1|awk ' {print $} ' 1>/dev/null 2>/dev/null
The result of the command can be defined as the output in the form of%>
/dev/null represents empty device files
> represents where to redirect,
From: http://www.ixdba.net/a/os/linux/2010/0422/35.html
"When reprinted, please indicate the source of the article and the author's information and this statement in the form of a hyperlink"Original link: http://www.ixdba.net/a/os/linux/2010/0422/35.html
Today in one of their technical group was asked such a question, and then the popular explanation, make a record, we see whether the explanation is clear.The shell may often see: >/dev/null 2
PHP array learning sorting full access to page 12th. Array_values ($ arr) array returns all elements of the array. the code for copying all elements is as follows :? Php $ arrarray (a, B, c); $ arrarray_flip ($ arr); reverse the subscript of the array and the current $ arr array_values ($ arr) array
Returns all elements of the array.
The code is as follows:
$ Arr = array ("a", "B", "c ");$ Arr = array_flip ($ arr); // reverse the subscript of the array and the current $ arr = array (0,
1. Use PHP to print the time format of the previous day in the format of 22:21:21 (2 points)
2. Differences between echo (), print (), and print_r () (3 points)
3. templates that can separate HTML and PHP (1 point)
4. What tools are used for version control? (
array is the index/value pair of the current array pointer. The returned array has four elements in order: 0, 1, index, and value. The preceding 0 and index are the index of the array, and the 1 and value are the values of the array element.ExampleExample 1:$ Foo = array ("bob", "fred", "jussi", "jouni ");$ Bar = each ($ foo );?>In the preceding example, the ind
Processing
The returned array is the index/value pair of the current array pointer. The returned array has four elements in order: 0, 1, index, and value. The preceding 0 and index are the index of the array, and the 1 and value are the values of the array element.ExampleExample 1:$ Foo = array ("bob", "fred", "jussi", "jouni ");$ Bar = each ($ foo );?>In the pr
("localhost", "root", "7529639"); // create a database connectionMysql_select_db ("cr_download"); // select the database to operate/*First, we need to obtain the actual amount of data in the database to determine the specific number of pages to be divided. The specific formula isTotal databases divided by the number of entries displayed on each page, more than one.That is to say, 10/3 = 3.3333 = 4 there is a remainder, and we need to enter.*/$ Result = my
/sbin/php-fpm-tchmod 755/etc/init.d/php-fpm/ETC/INIT.D/PHP-FPM start NETSTAT-LNPT See if there is a listening 192.168.239.140:9000Mkdir-p/tmp/tmpvim/tmp/tmp/index.php Create the dynamic test file, write the followingDongtaiqingqiu 12. The second installation of PHP (the installation and compilation are unchanged, the configuration file IP changed to 192.168.239.144:9000 last index.php Dongtaiqingqiu 1 to DONGTAIQINGQIU2)3. Installing NginxDownload sou
hardware" separately.// |/Usr Install the MySQL service and start the service:MySQL generally uses the current STABLE version:Try not to use the -- with-charset = option. I feel that with-charset is only useful in alphabetical order. These options will cause a lot of trouble for data migration.Try not to use innodb. innodb is mainly used for enterprise-level support such as foreign keys and transactions, at the cost of reducing the speed by an order of magnitude than MYISAM../Configure -- prefi
security, it is best to install MySQL program files and data on "different hardware" separately.
// |/Usr Install the MySQL service and start the service:
MySQL generally uses the current STABLE version:
Try not to use the -- with-charset = option. I feel that with-charset is only useful in alphabetical order. These options will cause a lot of trouble for data migration.
Try not to use innodb. innodb is mainly used for enterprise-level support such as foreign keys and transactions, at the cos
() string matching functions, eregi () is the version of the ereg () function that ignores the size
Syntax format: if (! Ereg ('^ [^./] [^/] * $', $ userfile) // output die in mismatched format
{
Die ('this is an invalid file name! ');
}
Replace ereg_replace () and eregi_replace (case-insensitive)
String eregi_replace ("regular expression", "Target replacement character", and "target replacement ")
Syntax format: $ string = "This is a test ";
Echo s
information table for example:
I built 100 of these in advance, message_00,message_01,message_02..........message_98,message_99. And then based on the user ID to determine the user's chat information into which table, You can use a hash of the way to obtain, you can use the way to obtain the remainder, a lot of ways, everyone think of the bar. The following hash method is used to get the table name:
Code
code is as follows
copy code
function get_hash_table ($
$$The PID of the shell itself (ProcessID)$!PID of the Shell's last running background process$?End code of the last Run command (return value)$-Flag at a glance using the SET command$*All parameter lists. such as "$*" in the Case of "" ", in the form of" $ $ ... $n "output all parameters.[Email protected]All parameter lists. such as "[email protected]" with "" "in the case, with" $ "" $ "... All parameters are output in the form "$n".$#Number of arguments added to the shell$The name of the shell
not allowedXu is logging on;If ($ username = user ){// Here, you can try to log on three times, and write it below as 2 because the page refresh is not synchronized with the database connection,// That is to say, the information obtained here is the first time when the second error message is inserted into the database.The number of times has been more than once;If ($ row ['login _ times ']> 2 ){$ Current
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.