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

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

?? ?? ?? ???

Jul 25, 2016 am 09:11 AM

驗(yàn)證碼文件類
  1. /**
  2. * @file
  3. * @version 1.0
  4. * @author 網(wǎng)海浪子
  5. * @date 2006-3-30
  6. * @email [email]sxf02615@163.com[/email]
  7. * @brief 驗(yàn)證碼文件類
  8. *
  9. */
  10. ?>
  11. class CCheckCodeFile
  12. {
  13. //驗(yàn)證碼位數(shù)
  14. private $mCheckCodeNum = 4;
  15. //產(chǎn)生的驗(yàn)證碼
  16. private $mCheckCode = '';
  17. //驗(yàn)證碼的圖片
  18. private $mCheckImage = '';
  19. //干擾像素
  20. private $mDisturbColor = '';
  21. //驗(yàn)證碼的圖片寬度
  22. private $mCheckImageWidth = '80';
  23. //驗(yàn)證碼的圖片寬度
  24. private $mCheckImageHeight = '20';
  25. /**
  26. *
  27. * @brief 輸出頭
  28. *
  29. */
  30. private function OutFileHeader()
  31. {
  32. header ("Content-type: image/png");
  33. }
  34. /**
  35. *
  36. * @brief 產(chǎn)生驗(yàn)證碼
  37. *
  38. */
  39. private function CreateCheckCode()
  40. {
  41. $this->mCheckCode = strtoupper(substr(md5(rand()),0,$this->mCheckCodeNum));
  42. return $this->mCheckCode;
  43. }
  44. /**
  45. *
  46. * @brief 產(chǎn)生驗(yàn)證碼圖片
  47. *
  48. */
  49. private function CreateImage()
  50. {
  51. $this->mCheckImage = @imagecreate ($this->mCheckImageWidth,$this->mCheckImageHeight);
  52. imagecolorallocate ($this->mCheckImage, 200, 200, 200);
  53. return $this->mCheckImage;
  54. }
  55. /**
  56. *
  57. * @brief 設(shè)置圖片的干擾像素
  58. *
  59. */
  60. private function SetDisturbColor()
  61. {
  62. for ($i=0;$i<=128;$i )
  63. {
  64. $this->mDisturbColor = imagecolorallocate ($this->mCheckImage, rand(0,255), rand(0,255), rand(0,255));
  65. imagesetpixel($this->mCheckImage,rand(2,128),rand(2,38),$this->mDisturbColor);
  66. }
  67. }
  68. /**
  69. *
  70. * @brief 設(shè)置驗(yàn)證碼圖片的大小
  71. *
  72. * @param $width 寬
  73. *
  74. * @param $height 高
  75. *
  76. */
  77. public function SetCheckImageWH($width,$height)
  78. {
  79. if($width==''||$height=='')return false;
  80. $this->mCheckImageWidth = $width;
  81. $this->mCheckImageHeight = $height;
  82. return true;
  83. }
  84. /**
  85. *
  86. * @brief 在驗(yàn)證碼圖片上逐個畫上驗(yàn)證碼
  87. *
  88. */
  89. private function WriteCheckCodeToImage()
  90. {
  91. for ($i=0;$i<=$this->mCheckCodeNum;$i )
  92. {
  93. $bg_color = imagecolorallocate ($this->mCheckImage, rand(0,255), rand(0,128), rand(0,255));
  94. $x = floor($this->mCheckImageWidth/$this->mCheckCodeNum)*$i;
  95. $y = rand(0,$this->mCheckImageHeight-15);
  96. imagechar ($this->mCheckImage, 5, $x, $y, $this->mCheckCode[$i], $bg_color);
  97. }
  98. }
  99. /**
  100. *
  101. * @brief 輸出驗(yàn)證碼圖片
  102. *
  103. */
  104. public function OutCheckImage()
  105. {
  106. $this ->OutFileHeader();
  107. $this ->CreateCheckCode();
  108. $this ->CreateImage();
  109. $this ->SetDisturbColor();
  110. $this ->WriteCheckCodeToImage();
  111. imagepng($this->mCheckImage);
  112. imagedestroy($this->mCheckImage);
  113. }
  114. }
  115. $c_check_code_image = new CCheckCodeFile();
  116. //$c_check_code_image ->SetCheckImageWH(100,50);//設(shè)置顯示驗(yàn)證碼圖片的尺寸
  117. $c_check_code_image ->OutCheckImage();
  118. ?>
復(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 18, 2025 am 04:52 AM

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

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

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

See all articles