国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

? ??? ?? PHP ???? ??? ??? ???? PHP? ?? ??

??? ??? ???? PHP? ?? ??

Jul 25, 2016 am 09:07 AM

  1. /*

  2. * ??: ??? ??? ???? ??? ??? ????? ?????.
  3. */

  4. $ViewRandomCode = mt_rand(1000,10000);

  5. session_start();

  6. $_SESSION[' checksum'] = $ViewRandomCode;

  7. function set_4pixel($r, $g, $b, $x, $y)

  8. {
  9. global $sx, $sy , $pixels;

  10. $ofs = 3 * ($sx * $y $x);

  11. $pixels[$ofs] = chr($r);
  12. $pixels[$ofs 1] = chr($g);
  13. $pixels[$ofs 2] = chr($b);
  14. $pixels[$ofs 3] = chr($r);
  15. $pixels[$ofs 4] = chr($g);
  16. $pixels[$ofs 5] = chr($b);
  17. $ofs = 3 * $sx;
  18. $pixels[$ ofs] = chr($r);
  19. $pixels[$ofs 1] = chr($g);
  20. $pixels[$ofs 2] = chr($b);
  21. $pixels[$ ofs 3] = chr($r);
  22. $pixels[$ofs 4] = chr($g);
  23. $pixels[$ofs 5] = chr($b);
  24. }
  25. //生成數(shù)字圖象的函數(shù)
  26. function draw2digits($x, $y, $number)
  27. {
  28. draw_digit($x, $y, (int) ($number / 10));
  29. draw_digit($x 11, $y, $number % 10);
  30. }

  31. function draw_digit($x, $y, $digit)

  32. {
  33. ??? $sx, $sy, $pixels, $digits, $lines;

  34. $digit = $digits[$digit];

  35. $m = 8;
  36. for ($b = 1, $i = 0; $i < 7; $i , $b *= 2)
  37. {
  38. if (($b & $digit) == $b) {
  39. $j = $i * 4;
  40. $x0 = $lines [$j] * $m $x;
  41. $y0 = $lines[$j 1] * $m $y;
  42. $x1 = $lines[$j 2] * $m $x;
  43. $y1 = $lines[$j 3] * $m $y;
  44. if ($x0 == $x1) {
  45. $ofs = 3 * ($sx * $y0 $x0);
  46. for ($h = $y0; $h $pixels[$ofs] = chr(0);
  47. $pixels[ $ofs 1] = chr(0);
  48. $pixels[$ofs 2] = chr(0);
  49. }
  50. } else {
  51. $ofs = 3 * ($sx * $y0 $x0);
  52. for ($w = $x0; $w <= $x1; $w ) {
  53. $pixels[$ofs ] = chr(0);
  54. $pixels[$ofs ] = chr(0);
  55. $pixels[$ofs ] = chr(0);
  56. }
  57. }
  58. }
  59. }
  60. }

  61. //將文字加入到圖象中

  62. ?? add_chunk($type)
  63. {
  64. global $result, $data, $chunk, $crc_table;

  65. // ?? :為層

  66. // ??: 4 字節(jié): 用來計算 ??
  67. // ?? ??: 4 字節(jié)
  68. // ?? ???: ?? ???
  69. / / CRC: 4 字節(jié): 循環(huán)冗余碼校驗

  70. // ??? ?? ? CRC ??? ??

  71. $len = strlen($data);
  72. $chunk = pack(“c*”, ($len >> 24) & 255,
  73. ($len >> 16) & 255,
  74. ($len >> 8) & 255,
  75. $len & 255);
  76. $chunk .= $type;
  77. $chunk .= $data;

  78. // ?? ??? ??[4..len-1]

  79. $z = 16777215;
  80. $z |= 255 << 24;
  81. $c = $z;
  82. for ($n = 4; $n < strlen($chunk); $n ) {
  83. $c8 = ($c >> 8) & 0xffffff;
  84. $c = $crc_table[($c ^ ord($chunk[$n])) & 0xff] ^ $c8;
  85. }
  86. $crc = $c ^ $z;< ;/p>
  87. $chunk .= chr(($crc >> 24) & 255);

  88. $chunk .= chr(($crc >> 16) & 255 );
  89. $chunk .= chr(($crc >> 8) & 255);
  90. $chunk .= chr($crc & 255);

  91. $result .= $chunk;
  92. }

  93. //主程序

  94. < p>$sx = 55;
  95. $sy = 21;
  96. $pixels = rand(100,99990)%2?”qwer”:”";

  97. / / 填充

  98. for ($h = 0; $h {
  99. for ($w = 0; $w {
  100. $r = 100 / $sx * $w 155;
  101. $g = 100 / $sy * $h 155;
  102. $b = 255 – (100 / ($sx $sy) * ($ w $h));
  103. $pixels .= chr($r);
  104. $pixels .= chr($g);
  105. $pixels .= chr($b);
  106. }
  107. }

  108. $checknum = isset($ViewRandomCode)?$ViewRandomCode:1234;

  109. $h = (int)($checknum/100);
  110. $m = (int)($checknum 0);
  111. $digits = ??(95, 5, 118, 117, 45, 121, 123, 69, 127, 125);
  112. $lines = ??(1, 1, 1, 2, 0, 1, 0, 2, 1, 0, 1, 1, 0, 0, 0, 1, 0, 2, 1, 2, 0, 1, 1, 1, 0, 0, 1, 0);

  113. draw2digits(4, 2, $h);

  114. draw2digits(30, 2, $m);

  115. < p>// set_4pixel(0, 0, 0, 26, 7);
  116. // set_4pixel(0, 0, 0, 26, 13);

  117. // 創(chuàng)建循環(huán)冗余碼校驗表

  118. $z = -306674912; // = 0xedb88320
  119. for ($n = 0; $n < 256; $n ) {
  120. $c = $n;
  121. for ($k = 0; $k < 8; $ k ) {
  122. $c2 = ($c >> 1) & 0×7fffffff;
  123. if ($c & 1) $c = $z ^ ($c2); else $c = $c2;
  124. }
  125. $crc_table[$n] = $c;
  126. }
  127. // PNG ?? ??

  128. $result = pack(“c*”, 137,80,78,71,13,10,26,10);
  129. // IHDR ?? ???:

  130. // ??: 4???
  131. // ??: 4???
  132. // ?? ??: 1???(RGB ?? 8??)
  133. // ?? ??: 1???(2 = RGB)
  134. // ?? ??: 1???(0 = ??/??)
  135. // ?? ??: 1???(0 = ??? ???)
  136. // ????? ??: 1???(0 = ????? ??)
  137. $data = pack(“c*”, ($sx >> 24) & 255,
  138. ($sx >> 16 ) & 255,
  139. ($sx >> 8) & 255,
  140. $sx & 255,
  141. ($sy >> 24) & 255,
  142. ($sy > > 16) & 255,
  143. ($sy >> 8) & 255,
  144. $sy & 255,
  145. 8,
  146. 2,
  147. 0,
  148. 0,
  149. 0);
  150. add_chunk(“IHDR”);

  151. // 以下不敢亂翻譯,請自行參考

  152. // ????:
  153. / / ?? ???: 0 = ??
  154. // ??? RGB ???
  155. // ????? "zlib"? ?????. ?? 8(RFC-1950):
  156. // ?? ??/??? ??: 1???($78 = ??? 8, 32k ?)
  157. // ?? ???/?? ??: 1???($01: FCHECK = 1, FDICT = 0, FLEVEL = 0)
  158. // ?? ??? ??: n???
  159. // ? ??(RFC-1951):
  160. // ?? 0: BFINAL: ??? ??? ?? 1
  161. // ?? 1 ? 2: BTYPE: ???? ?? 0
  162. // ?? 2???: LEN(LSB ??)
  163. // ?? 2???: LEN? 1? ??
  164. // LEN ??? ??? ???
  165. // ?? ?: 4???(???? ?? ???? Adler-32 ???)
  166. //
  167. $len = ($sx * 3 1) * $sy;
  168. $data = pack(“c*”, 0×78, 0×01,
  169. 1,
  170. $len & 255,
  171. ($len >> 8) & 255,
  172. 255 – ($len & 255),
  173. 255 – (($len >> 8) & 255));
  174. $start = strlen($data);
  175. $i2 = 0;
  176. for ($h = 0; $h $data .= chr(0);
  177. for ($w = 0; $w < $sx * 3; $w ) {
  178. $data .= $pixels[$i2 ];
  179. }
  180. }

  181. // ?? data[start..len-1]

  182. $s1 = 1;
  183. $s2 = 0;
  184. for ($n = $start; $n < strlen($data) ???? Adler32 ??? ); $n ) {
  185. $s1 = ($s1 ord($data[$n])) % 65521;
  186. $s2 = ($s2 $s1) % 65521;
  187. }
  188. $adler = ($s2

    $data .= chr(($adler >> 24) & 255);

  189. $data .= chr(($adler >> 16) & 255);
  190. $data .= chr(($adler >> 8) & 255);
  191. $data .= chr($adler & 255);
  192. add_chunk(“IDAT ”);

  193. // IEND: PNG ??? ?? ??

  194. $data = “”;
  195. add_chunk(“IEND”);
  196. // 列印圖象

  197. echo($result);

  198. ?>

復(fù)??碼


? ????? ??
? ?? ??? ????? ???? ??? ??????, ???? ?????? ????. ? ???? ?? ???? ?? ??? ?? ????. ???? ??? ???? ???? ??? ?? admin@php.cn?? ?????.

? AI ??

Undresser.AI Undress

Undresser.AI Undress

???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover

AI Clothes Remover

???? ?? ???? ??? AI ?????.

Video Face Swap

Video Face Swap

??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

???

??? ??

???++7.3.1

???++7.3.1

???? ?? ?? ?? ???

SublimeText3 ??? ??

SublimeText3 ??? ??

??? ??, ???? ?? ????.

???? 13.0.1 ???

???? 13.0.1 ???

??? PHP ?? ?? ??

???? CS6

???? CS6

??? ? ?? ??

SublimeText3 Mac ??

SublimeText3 Mac ??

? ??? ?? ?? ?????(SublimeText3)

???

??? ??

??? ????
1601
29
PHP ????
1502
276
???
PHP ?? ??? ??????? PHP ?? ??? ??????? Jul 17, 2025 am 04:16 AM

PHP ?? ??? ?? ???? ?? ? ????? ??? ?????. 1. ?? ??? ??? ??? ??? ? ? ??? ??? ??? ?? ?? ??? ???? ???????. 2. ?? ??? ???? ???? ? ?? ????? ?? ?? ?? ??? ?????. 3. $ _get ? $ _post? ?? Hyperglobal ??? ?? ???? ?? ??? ? ??? ??? ??????? ???????. 4. ?? ?? ?? ???? ?? ?? ?? ??? ?????? ?? ??? ??? ?? ??? ???????. ??? ??? ????? ??? ??? ?? ???? ????? ? ??? ? ? ????.

PHP?? ?? ???? ???? ???? ??? ?????? PHP?? ?? ???? ???? ???? ??? ?????? Jul 08, 2025 am 02:37 AM

PHP ?? ???? ???? ????? ?? ? ??? ???? ?? ?? ? ??? ???? ?? ??? ?????? ??? ??? ? ? ???????. 1. ??? ?? CSRF? ???? ?? ??? ??? ???? ?????? ??? ???? FINFO_FILE? ?? ?? MIME ??? ?????. 2. ??? ??? ??? ???? ??? ?? ??? ?? ? WEB ????? ??? ???? ??????. 3. PHP ?? ??? ?? ? ?? ???? NGINX/APACHE? ??? ????? ?? ???? ?????. 4. GD ?????? ??? ? ?? ???? ??? ?? ??? ?? ????.

PHP?? ?? ?? PHP?? ?? ?? Jul 18, 2025 am 04:57 AM

PHP ?? ???? ? ?? ???? ??? ????. 1. // ?? #? ???? ? ?? ??? ???? // ???? ?? ????. 2. ?? /.../ ?? ?? ?? ??? ????? ?? ? ?? ??? ?? ? ? ????. 3. ?? ?? ?? / if () {} /? ?? ?? ??? ????? ??? ?? ?? ?? ??? ???? ????? ???? ??? ?? ???? ???? ??? ? ??? ??????.

PHP ?? ?? ? PHP ?? ?? ? Jul 18, 2025 am 04:51 AM

PHP ??? ???? ??? ??? ??? ????? ????. ??? ????? ?? ???? ??? "?? ? ?"??? "?"? ???????. 1. ??? ? ??? ??? DocBlock (/*/)? ?? ?? ??? ???? ??? ? ?? ???? ??????. 2. JS ??? ???? ?? ???? ??? ?? ??? ??? ?????. 3. ??? ?? ?? ?? ??? ???? ????? ????? ???? ?? ????? ???? ? ??????. 4. Todo ? Fixme? ????? ???? ? ? ??? ??? ???? ?? ?? ? ??? ???????. ??? ???? ?? ??? ??? ?? ?? ?? ???? ???? ? ????.

PHP?? ???? ??? ?????? PHP?? ???? ??? ?????? Jul 11, 2025 am 03:12 AM

Ageneratorinphpisamemory- ???? Way-Erate-Overgedatasetsetsbaluesoneatimeatimeatimeatimallatonce.1.generatorsuseTheyieldKeywordTocroadtOpvaluesondemand, RetingMemoryUsage.2

?? PHP : ??? ??? ?? PHP : ??? ??? Jul 18, 2025 am 04:54 AM

tolearnpheffectical, startBysetTupaloCalserErverEnmentUsingToolslikexamppandacodeeditor -likevscode.1) installxamppforapache, mysql, andphp.2) useacodeeditorforsyntaxsupport.3)) 3) testimplephpfile.next, withpluclucincludechlucincluclucludechluclucled

PHP?? ??? ? ???? ??? ????? ?? PHP?? ??? ? ???? ??? ????? ?? Jul 12, 2025 am 03:15 AM

PHP??? ???? ??? ?? ?? ????? ???? ??? ?? ??? ??? ?? ? ??? ??? ???? ?????. ???? 0?? ???? ?? ??? ???? ? ?? ???? ?? ?? ? ? ????. MB_SUBSTR? ?? ??? ??? ???????. ? : $ str = "hello"; echo $ str [0]; ?? H; ??? MB_SUBSTR ($ str, 1,1)? ?? ??? ??? ??? ??????. ?? ???????? ???? ??? ???? ?? ???? ?? ?? ???? ?????? ??? ????? ?? ??? ?? ??? ???? ???? ?? ????.

?? PHP ?? ??? ?? PHP ?? ??? Jul 18, 2025 am 04:52 AM

toinstallphpquickly, usexampponwindowsorhomebrewonmacos.1. ??, downloadandinstallxAmpp, selectComponents, startApache ? placefilesinhtdocs.2

See all articles