PHP Judge today's day before, or before and after how many days of codephp Date_default_timezone_set ('PRC');//Default time zoneEcho"Today:", Date ("y-m-d", time ()),""; Echo"Today:", Date ("y-m-d", Strtotime ("June")),""; Echo"yesterday:", Date ("y-
The quickest way to learn to write script is to watch someone else's script file. However, although this method is practical, it is often "less effective" or even halfway to the shell's basic cognitive deficit. The first problem is that you don't
The case statement is suitable for applications that require multiple branching. The case Branch statement is formatted as follows: Case $ variable name inMode 1)Command sequence 1;;Mode 2)Command Sequence 2 ;;*)Sequence of commands executed
I. Command substitutionA. in Bash, $ () and ' (anti-quote) are used for command substitution.B. command substitution is similar to variable substitution, which is used to reorganize the command line, complete the command line in quotation marks, and
Double quotesPurpose: In order to contain text or function segments. In addition to itself, the function inside the counter-quote, the variable starting with $ and \ Start the inverse of the character outside, the rest are directly output.The
1 single quotation marksSingle quotation marks can be used to restore the literal meaning of characters, to implement the function of shielding metacharacters, single quotes must be used in pairs[Email protected]~]# echo ' $JAVA _home 'Special
Bash variable Category:
Local variable: Also called local variable, valid only for the current shell process
Environment variables: current shell and its child shell, child shell ....
Special variables: $? The status of the last
This article mainly introduces the variables in the shell use summary, this article summed up the variable syntax, common use forms and so on, and give the code examples, the need for friends can refer to the
The definition of a variable can only
PHP to get the early morning time stamp, Baidu a bit, did not see there, it may be I understand the wrong.
Directly on the code:
For example, today is November 2, 2102, then PHP to get the November 2, 2102 Timestamp is how to do?
Code: Echo
Want to give subversion an automatic backup script, a look at the size of the directory, already has dozens of G.It is a good solution to make a full backup too cost system resources every day.Make a full backup once a week, and then do an
Command lineWhen users log on to the Linux system, they can see a shell prompt that identifies the start of the command line. The user can enter any commands and parameters after the prompt. For example: $ date 211 01:34:58 CST 1999 $
After the project is developed and deployed to the Linux environment, if its own platform does not provide log automatic backup functionality, then we may need to write a script and use the Linux crontab to do the scheduled cleanup and backup
# Well No. (comments)#管理员 $ ordinary User
In the script
#!/bin/bash #!/bin/sh
Typically appear in the first line of the shell script, meaning to use/bin/bash to execute the current shell script, except for the first line, which plays the role of
Vim Learning
Vim's normal mode press CTRL+Z will put the currently open file into the background to run, if you need to restore to the foreground, you need to use the command mode of the shell to see the number of all tasks in the current
Functions | syntax
Function
In PHP, programmers are allowed to organize components such as commonly used processes or variables into a fixed format. That is, users can assemble functions or classes themselves.
Functions in PHP, like the C language,
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.