亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

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

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

Jul 25, 2016 am 08:51 AM

  1. //php ???? ??
  2. imageWaterMark($groundImage,$waterPos=0,$waterImage="",$waterText= "",$textFont=5,$textColor="#FF0000")
  3. {
  4. $isWaterImage = FALSE;
  5. $formatMsg = "? ?? ??? ?? ???? ????. ??? ?? ?????? ???? ?????. ???? GIF, JPG, PNG ?????.";
  6. //???? ?? ??
  7. if(!empty($waterImage) && file_exists($waterImage))
  8. {
  9. $isWaterImage = TRUE;
  10. $water_info = getimagesize($ waterImage ); //?? ?? ?????
  11. $water_w = $water_info[0];//???? ???? ??? ????.
  12. $water_h = $water_info[1];//???? ???? ??? ????. ???? ???
  13. switch($water_info[2])//???? ??? ?? ????
  14. {
  15. case 1:$water_im = imagecreatefromgif($waterImage);break; PHP?? ??? ? ?? ??? ????
  16. case 2:$water_im = imagecreatefromjpeg($waterImage);break; //???? PHP?? ??? ? ?? ??? ????? ??
  17. case 3:$water_im = imagecreatefrompng; ($waterImage);break; //PHP?? ???? ??? ????
  18. default:die($formatMsg)
  19. }
  20. }
  21. //?? ??? ??
  22. if(! empty($groundImage) && file_exists($ groundImage))
  23. {
  24. $ground_info = getimagesize($groundImage)
  25. $ground_w = $ground_info[0];//?? ??? ?? ????
  26. $ground_h = $ground_info[1]; //?? ??? ?? ????
  27. switch($ground_info[2])//?? ??? ?? ????
  28. {
  29. ?? 1: $ground_im = imagecreatefromgif($groundImage);break;
  30. ??? 2:$ground_im = imagecreatefromjpeg($groundImage);break
  31. ??? 3:$ground_im = imagecreatefrompng($groundImage);
  32. ???: die($formatMsg);
  33. }
  34. }
  35. else
  36. {
  37. die("?????? ? ??? ???? ????! ");
  38. }
  39. //???? ??
  40. if($isWaterImage)//?? ????
  41. {
  42. $w = $water_w;
  43. $h = $water_h;
  44. $label = "???"
  45. }
  46. else//??? ????
  47. {
  48. $temp = imagettfbbox(ceil($textFont*2.5),0,"c:/windows/fonts / stcaiyun.ttf",$waterText);//???? ??? ???? ??? ?? ????
  49. $w = $temp[2] - $temp[6];
  50. $h = $temp[3] - $ temp[7];
  51. unset($temp);
  52. $label = "??? ??"
  53. }
  54. if( ($ground_w<$w) || ($ground_h<$h ) )
  55. {
  56. echo "????? ???? ?? ???? ??? ??? ".$label." ?????? ??? ????? ??? ? ????! ";
  57. return;
  58. }
  59. switch($waterPos)
  60. {
  61. case 0://random
  62. $posX = rand(0,($ground_w - $w)) ;
  63. $posY = rand(0,($ground_h - $h));
  64. break
  65. ?? ??? 1://1???
  66. $posY; = 0;
  67. break;
  68. case 2://2? ?? ??? ????.
  69. $posX = ($ground_w - $w) / 2
  70. $posY = 0;
  71. ??? 3://3? ??? ??
  72. $posX = $ground_w - $w;
  73. $posY = 0
  74. break
  75. ???; left
  76. $posX = 0;
  77. $posY = ($ground_h - $h) / 2
  78. break
  79. case 5://5? ??? ???
  80. $posX = ($ground_w - $w) / 2;
  81. $posY = ($ground_h - $h) / 2
  82. break
  83. case 6://6? ??? ??
  84. $posX = $ ground_w - $ w;
  85. $posY = ($ground_h - $h) / 2;
  86. break
  87. case 7://7? ?? ??
  88. $posX = 0; posY = $ground_h - $h;
  89. break;
  90. case 8://8? ?? ??? ?????.
  91. $posX = ($ground_w - $w) / 2; $ h;
  92. break;
  93. case 9://9? ??? ??
  94. $ground_w - $w
  95. $posY = $ground_h -
  96. break; ??>default://random
  97. $posX = rand(0,($ground_w - $w))
  98. $posY = rand(0,($ground_h - $h))
  99. break ;
  100. }
  101. //???? ?? ?? ?? ??
  102. imagealphablending($ground_im, true)
  103. if($isWaterImage)//??? ????
  104. {
  105. imagecopy($ ground_im , $water_im, $posX, $posY, 0, 0, $water_w,$water_h);//????? ?? ??? ??
  106. }
  107. else//??? ????
  108. {
  109. if( !empty($textColor) && (strlen($textColor)==7) )
  110. {
  111. $R = hexdec(substr($textColor,1,2))
  112. $G = hexdec(substr ( $textColor,3,2));
  113. $B = hexdec(substr($textColor,5));
  114. }
  115. else
  116. {
  117. die("???? ??? ?? ?? ???? ????!");
  118. }
  119. imagestring( $ground_im, $textFont, $posX, $posY, $waterText, imagecolorallocate($ground_im, $R, $G, $B));
  120. }
  121. //???? ??? ??
  122. @unlink($groundImage);
  123. switch($ground_info[2])//?? ??? ?? ????
  124. {
  125. case 1:imagegif($ground_im, $groundImage);break; //gif ??? ?? ???
  126. case 2:imagejpeg($ground_im,$groundImage);break; //jpeg ??? ?? ???
  127. case 3:imagepng($ground_im, $groundImage );break; //png ???? ?? ???
  128. default:die($errorMsg);
  129. }
  130. //??? ??
  131. if(isset($water_info)) unset($ water_info);
  132. if(isset($water_im)) imagedestroy($water_im);
  133. unset($ground_info)
  134. imagedestroy($ground_im);
  135. >
  136. php ??? ??? ??:
  137. for ($i=0;$i{
  138. $upfile="./img/".($i 1).".png";//???? ??? ??? ??? ?????
  139. if(move_uploaded_file($_FILES['userfile'][' tmp_name' ][$i],$upfile)){
  140. imageWaterMark($upfile,9,"./shuiyin.png","Made By Chenduan",5,"#FF0000")
  141. /*
  142. * ??: ??? ????(????? ???? ???? ?????)
  143. * imageWaterMark($groundImage,$waterPos=0,$waterImage="",$waterText="",$textFont=5,$textColor=" #FF0000 ")
  144. * ????:
  145. * $groundImage ?? ???, ? ????? ??? ???? ?? GIF, JPG, PNG ??? ?????.
  146. * $waterPos ???? ??, ?? 10? ??, 0? ?? ?????.
  147. * 1? ?? ??, 2? ?? ??, 3? ??? ?????.
  148. * 4? ?? ???, 5? ??? ??????. * 7? ?? ?? ?, 8? ?? ??, 9? ?? ???? ?????.
  149. * $waterImage ??? ????, ? ?? ????? ???? ??????. GIF, JPG, PNG ??? ?????.
  150. * $waterText ??? ????, ? ???? ASCII ??? ???? ???? ???? ?? ????? ?????.
  151. * $textFont ??? ??, ?? 1, 2, 3, 4 ?? 5?? ???? 5???.
  152. * $textColor ??? ??, ? 16?? ?? ??? ???? #FF0000(???)???. >echo ""
  153. echo "The".($i 1)." ?? ??? ??????.
    "; ??>}
  154. else{
  155. echo "The".($i 1)." ??? ????????. No
    "
  156. }
  157. }
  158. ?>
  159. ?? ??
? ????? ??
? ?? ??? ????? ???? ??? ??????, ???? ?????? ????. ? ???? ?? ???? ?? ??? ?? ????. ???? ??? ???? ???? ??? ?? 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)

???

??? ??

??? ????
1597
29
PHP ????
1488
72
???
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 11, 2025 am 03:12 AM

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

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

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

?? 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)? ?? ??? ??? ??? ??????. ?? ???????? ???? ??? ???? ?? ???? ?? ?? ???? ?????? ??? ????? ?? ??? ?? ??? ???? ???? ?? ????.

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

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

See all articles