DATE-FORMAT is used.$ Result = mysql_query ($ SQL );$ Num = mysql_num_rows ($ result );If ($ num> 0 ){While ($ row = mysql_fetch_array ($ result )){// Echo print_r ($ row );If ($ row [2] = "male") // change the gender to the name you want ^_^{$ Sex = "Shuai pan ";}Else{$ Sex = "beauty ";}?>}}Else{Echo "}?>$ First = 1;
Ec (2); 1. concatenating String concatenation strings is one of the most common string operations. In the php tutorial, You Can concatenate strings in three ways: Dots. separator {} operation, and dot equal sign. the dot equals sign can be used to separate a long string into several rows for definition. This is more ad
The shell can often be seen: >/dev/null 2>1Eg:sudo kill-9 ' ps-elf |grep-v grep|grep $1|awk ' {print $4} ' 1>/dev/null 2>/dev/nullThe result of the command can be defined in the form of a%> output/dev/null represents an empty device fileWhere does the > delegate redirect to, for example:
the shell: >/dev/null 2>1 Detailed
The shell can often be seen: >/dev/null 2>1
The result of the command can be defined in the form of a%> output
Break down this combination: ">/dev/null 2>1" is part five.
Where does the
to basic Linux shell script Learning (2)
This section introduces the basic course of Linux shell script. It introduces shell commands and process control in detail. This section introduces three types of commands, which should be compared during learning.
The basic course of Linux shell script describes the beginning, comments, variables, and environment variables of the basic syntax. Here we will introduce the first part of the shell command and con
"){Switch ($ param){Case "qsort ":Qsort ($ arrayData );Break;Case "insertion ":Insertion_sort ($ arrayData );Break;Default:Bubble_sort ($ arrayData );Break;}}?>
Variable parameters:Php can pass any number of parameters to the function, and then use func_num_args, func_get_arg, and func_get_args to obtain the parameter values.Copy codeThe Code is as follows: Function print_parameter_values (){$ All_parameters = func_get_args ();Foreach ($ all_parameters as $ index => $ value){
(isset ($ _ GET ['Page']){$ Page = intval ($ _ GET ['Page']);}Else{$ Page = 1; // Set it to the first page}$ Offset = $ pagesize * ($ page-1); // calculates the record offset.// The paging code ends.$ SQL = "select id, username, sex, qq, email, info, ip, DATE_FORMAT (submit_time, '% Y % m % d % t ') from lo order by id desc limit $ offset, $ pagesize "; // The DATE-FORMAT is used.$ Result = mysql_query ($
number of pages.$ Myrow = mysql_fetch_array ($ rs );$ Numrows = $ myrow [0]; // calculates the total number of records.$ Pages = intval ($ numrows/$ pagesize );If ($ numrows % $ pagesize) $ pages ++; // you can specify the number of pages.If (isset ($ _ GET ['Page']){$ Page = intval ($ _ GET ['Page']);}Else{$ Page = 1; // Set it to the first page}$ Offset = $ pagesize * ($ page-1); // calculates the record
-2.6.828.# add Mhash to the LD library path29.[root@localhost mcrypt-2.6.8]# Export Ld_library_path=/usr/local/lib30.[root@localhost mcrypt-2.6.8]# Ldconfig31.[root@localhost mcrypt-2.6.8]#./configure32.[root@localhost mcrypt-2.6.8]# make make install33.[root@localhost mcrypt-2.6.8]# CD.
2. Download PHP and the corresponding version of PHP-FPM
The code is as follows
Copy Code
Variable Description:$$ the shell itself PID (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. All arguments are considered to be a string[email protected] all parameter lists. argument is a separate string$# number of arguments added to the shellThe file name of the shell itself$1~ $n Each parameter value added to the shell.
wpsCd ucdos enters the ucdos directoryWps running wpsBatch File ParametersThe batch file can also use parameters (equivalent to the command line parameters of the doscommand) like C functions, which requires a parameter identifier "% ".% [1-9] indicates a parameter. A parameter is a string separated by spaces (or tabs) after the file name when a batch file is run. Variables can be changed from % 0 to % 9.% 0 indicates the Batch Processing Command its
Second-close-up observation (1)
1. Preparation prior to commissioning of the executable program
2. Project Options
3. Set breakpoints and break into executable programs
4. View the values stored in the variable
5. Use of Watches (observation)
6. Use of inspectors (patrol device)
7. Using evaluate/modify (for evaluation/modification)
8.Stepping through, ov
Terminal: Essentially corresponds to the/dev/tty device on LinuxShell: Open terminal, Shell will open automaticallyCan be entered directly at the terminal: echo "Hello World"/*shell program Autorun */Important Shortcut keys:(1) TAB: completion (including parameters)(2) Ctrl + C: Forced termination
Ctrl+d
Keyboard input end or exit terminal
close SELinux->setenforce 0Set power on auto-off SelinxuMethod One:->vim/etc/selinux/configChange "selinux=enforcing" to "selinux=disalbed"->[ESC]: WqMethod Two:->sed-i ' s/selinux=enforcing/selinux=disalbed '/etc/selinux/config"Set CD on auto Mount"->echo "/dev/sr0/mnt iso9660 defaults 0 0" >>/etc/fatab#将系统镜像加载到 the/etc/fstab file"Configure Yum Source"Empty Yum Source->rm-rf/etc/yum.repos.d/*Configuring the Yum Source->cat >/etc/yum.repos.d/rhel7.re
'0' not null auto_increment,
Key id (id ),
Primary key (id)
);
Create table inventory (
Product tinytext not null,
Quantity tinytext not null,
Id int (4) default '0' not null auto_increment,
Description tinytext not null,
Price float (10, 2) default '0. 00' not null,
Category char (1) default ''not null,
Key id (id ),
Primary key (id ),
Key price (price)
);
Insert into inventory values ('har
example, if you run the bat command under the D: \ test directory, then he will run the D: \ test directory and all EXE files in its subdirectories are listed !!!
/L iteration value range use the iteration variable to set the start value (start #), and then gradually execute a set of range values, until this value exceeds the set end value (END #) . /L execute iteration variables by comparing start # And end. If start # is smaller than end #, the command is executed. If the iteration vari
| off}] [Message]Sample: @ echo off/ECHO Hello WorldIn actual application, we will combine this command with the redirection symbol (also known as the pipeline symbol) to input some commands to a file in a specific format. this will be reflected in future examples.
2. @ commandThe command after @ is not displayed. In the intrusion process (for example, you can
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.