Supplementary notes

mysql statement, why sometimes you can press Enter on submitted, and sometimes, press Enter enchant the line?

  • This is because, mysql checks the end of the current statement, there is no semicolon, to see this number of statements over whether the input, if the semicolon, the input is considered finished, this time the carriage was submitted;
  • Conversely, if there is no semicolon, it is considered not have entered, so this time the carriage was entered as the content rather than the presentation, which is the line change.

In tp, the acquisition record, find a query may be used, or getField methods find method is generally used, then acquired by the one-dimensional array to find a method to extract field values, and the value obtained getField not extracted.

jquery in, click the callback action there in confusion?

  1. Click this implicit plurality of objects in the callback function is a function closure, since the closure function can access external variables (for the loop variable, and $ ( 'the same class selector') Implicit containing cyclic)

About echo in use assignment?

. echo 'bumban subject teachers:' $ jsname RET = $ [$ I] [ 'jsname'] '.
';
the dump (Array ( 'jsname' => $ jsname, 'class' => $ curClass,' pjstud '=> $ stud));

Note that if the echo back a variable, and use this variable equal way, the last, the last of all the contents of the equal sign, will be assigned to this variable, not just outputs.
So, here is the actual value of $ jsname on is: "Joe Smith
" rather than just Joe Smith, but the data in the table is not 'John Doe
.' this field value which is why you can query out to get the value, but came back with was not the reason value .

========================

About whether the body of the tag and label variables plus $ accord?

Tp template tag, the internal name tag variable names and the like are not added $ symbol in the tag body, to use the variables will have to add $, and preferably to use braces: For example: $ {name [ 'foo']}
this is because the variable name tag as tag attribute values to resolve the template engine automatically converted into the variable conversion explanation, and the tag body is interpreted as such.

foreach in, volist etc., the loop variable $ k, $ i role is still very large! For example, in certain needs or occasions, not only to output a two-dimensional array / one-dimensional array, but also other output
related one-dimensional / two-dimensional array, (which is equal to the number, and correspondence between subscripts!) in this case, it is possible for one of the variables used foreach name = item = traverse, using a loop of additional variables variable traverse

It is noted that there is a default volist $ loop through I, but without foreach, loop variable is set to be displayed: <foreach .... key = "i / k / j"> used in the body of the tag: $ k. .. traversal

================================================

Question about php library in gd2 drawing.

imagecreate, is to create a function based on a palette of 256 colors of the canvas, only 8-bit color depth and color to create a true function is:. imagecreatetruecolor ??
itself php gd library provides some drawing functions, which itself is drawing functions *. php format (bottom layer is c) is present in the document, the drawing in pixels px

The screen size is the pixel number into aliquots, each aliquot is a pixel. Therefore, the pixel is relative units, density units, not the length of the unit, not as m, dm, cm, mm length value or the like, so it There is no fixed length. for the same size screen, different pixels, then the point included in unit length / parts are different, and therefore the absolute length of the same pixel value are different.

Php drawing function, there are two kinds of functions, one is a function of "assignment" category, is assigned to / set the color and the like, which has a return value, use foo_color = imagecreatecolor (...) assignment form write, for example: imagecreatecolor ... the other is the real draw for the drawing, is the process statement is not required by assignment form to write, direct call function (or function does not return value), such as: imageline (. ..)

$ Loop the value of i, in general practice, is incremented from 0 to increase, but not always, sometimes, descending from the big need, especially when the $ i itself to be used in the loop statement when, therefore, in the end $ i is incremented or decremented, to be determined according to the actual situation.

In the php file, we should note the space / use blank lines:

  • If you are <?php ... ?>inside php tags, you can freely use spaces or blank lines, since these spaces and blank lines will not be output to the html, php engine interprets it to go through the process before output.
  • But you're <?php ... ?>off-label the added spaces or blank lines will be treated as output content directly / immediately output to the html file, so the label on the outside of php spaces or blank lines, be careful writing, not random adding, for example, you want to draw in the php file as a source img src tag, add a space or a blank line on the outer label in the drawing can not be php php file, otherwise it will error! (equivalent to jpg, png and other image files source code in front of it a space, which leads to damage of the situation picture)

some animal and plant species can not accommodate to the rapidly changing conditions in some species of plants and animals can not adapt to the rapidly changing environment..
the populate, (population; live ...), popular (... popular public ...) they three syllables
and pollute (contamination) is two syllables.

php manual drawing functions, JPGraph drawing framework library
who src request, such as img src = ... tag request pictures request js files, etc., are all http requests (src and address this request can be local, it can be ), requesting the address of the picture, can all be delivered to a remote network id value, and other symbols are used to distinguish the. this allows the server is considered a different address, or request the requested resource (or resource is another picture request), and start a new drawing, obtain an updated picture changes /
all graphics are generated in a php file server side, stored in the server's memory, then your request is to src / php to access this drawing file so as to obtain a picture, pay attention to the php file to tell the browser and other resource type is image / png or jpg instead of the traditional text / html type, browser parses avoid mistakes.

============================================

Analysis of two words:
Evil [IVL] represented evil, bad; other words: veil v and the e exchange places, it is [Veil], represents a "veil, curtain, covering", such as: veil of ignorance: ignorance <<justice>> John curtain Rowls
appall: [2'p2l]: VT so horrified, so appalled appalling, appalled extended means:... "very / very / extremely to"
the ignore [ig'n2:], ignore, ignore, no matter however, ignorance: the meaning is somewhat changed: the "ignorance, ignorance; I do not know",.
His-iS appalling ignorance of ignorance at the LAW iS nO excuse [IK '.. skju: z] ignorance of the law is no excuse.
That WAS AN AN appalling appalling Waste Death Rate the When the this appalling by Will End the WAR..?

regress: "退化; 退步; 逆行" regressive, regressand. regression analysis: 回归分析; regression coefficient.
they would not regress to pre-technological tribalism
she claims to be able to regress to the Roman era.
I regressed Sylvia to early childhood.

Hugh: [hju:], 休, Hughes[hju:z]修斯
As Hugh grew older, she had less influence and couldn't control him

vim own built-in functions spell checking, opening spell-checking switch is: set spell, or off, set nospell, see spelling command is: [s,] s where [,] it can be considered: "Previous / , previous / next, decrease / increase "in the meaning of the corresponding spelling suggestion is:. z =, may be a wrong word, is added to the custom dictionary, the dictionary undo commands are: zg , zug / command and to give spelling suggestions are: z =

Depending on the user type, enter the account type, determine the different permission levels, so that the background server program directly redirected to a different page.

vim word, w, b commands, generally speaking, is a string of words beginning with the letters, but not all, some operation symbols may also be used as "word begins with"
is understood to vim text-object model, this text Object Object pattern can be a word, a paragraph, brackets and the like, support d, c, y and other commands, also supports a, i, etc. word range. If there is a preceding word spaces, dw will simply remove spaces, and remove the daw space and subsequent words.

vim alternative confirm?
using c expansion / additional commands, where c represents: confirm confirmation means.
For example:% s / abc / ABC / gc, as will replace abc ABC, and ask each replacement, y Alternatively is yes, n being no skip is not replaced, Is no longer continue to replace quit replacement operation, a representation is all the rest of the Replace All.

To extract pages css background image to be obtained by the css firebug, even if the background image is the address / public / img ... like similar, it may also be in the front / public ... plus the address in the address bar domain name server address on it.

The numbers in the program, it is best to be assigned to the variable name, and then reference the variable name. Do not write directly can change the data for the specific numbers.

vim cursor position: generally only change log file / location, the position of the cursor is not recorded, may be used to jump forward or ctrl + i, ctrl + o rearwardly?

GD2 library is used to generate verification codes?

// gd2库生成图像的默认单位是像素,不需要带单位,除非你用语句改变默认单位,比如mm等
$img_height = 100;
$img_width = 300;
$img = imagecreate($img_width, $img_height);
// gd2库做图像,因为可能同时有多个图像,所以很多语句或函数中都有$img/ 这个指定的图像 这个参数.
$black = imagecolorallocate($img, 0,0,0);
$white=imagecolorallocate($img, 255,255,255);
imagefill($img, 0,0, $bgcolor); // bgcolor可以是$black,也可以是$white.

// imagestring($img, 50, 300, 100, '123345', $black);
// 因为imagestring好像是只用来生成西文字符串, 不支持中文字体和utf-8, 更多的是使用imagettftext()来绘制字符串

$str = '验证码内容';
$font_size = 50;
$roll = 0;
$x = 50;
$y = 75;
$ttf = 'simli.ttf';  // 这样写表示是放在跟当前文件同一位置

imagettftext($img, $font_size, $roll, $x, $y, $ttf, $str);
header('Content-type:image/png');  // 记得以图片形式输出
imagepng($img);
imagedestroy($img);
exit();

这样就输出一个二维码图像? 验证码图像了....

In English, SVO singular and plural, although the singular and plural subject and predicate match, regardless of the object of singular and plural. For example, you can use a complex subject and predicate, and object can be singular.

slum housing, slum districts
The slums are a reproach to London.

======================================

mysql of int (4) Number 4 What does that mean?

Integer,

linux software / open files are divided by category, instead of / usr / lib and / usr / libexec

Guess you like

Origin www.cnblogs.com/bkylee/p/11331026.html