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

? ??? ?? PHP ???? PHP ??? ???? ???, PHP? ??? ???? ?? ??

PHP ??? ???? ???, PHP? ??? ???? ?? ??

Jul 25, 2016 am 08:51 AM

  1. Header("Content-type: image/png") /*???? ???? ????? ????*/
  2. $ im = imagecreate(400, 300); /*??? ?? ??*/
  3. $gray = ImageColorAllocate($im, 235, 235, 235)
  4. $pink = ImageColorAllocate($im , 255, 128, 255);
  5. $fontfile = "simkai.ttf"
  6. /* $fontfile ?? ??? ?? ??? ?? simhei.ttf(??), SIMKAI.TTF( italic), SIMFANG.TTF(??? ??), SIMSUN.TTC(??? ? ????) ? GD?? ???? ?? ??? ??*/
  7. $str = iconv('GB2312','UTF-8', '??? ????'); /*gb2312 ?? ??? UTF-8 ??? ??*/
  8. ImageTTFText($im, 30, 0, 100, 200, $pink, $fontfile, $str); /* ??? ???? ??*/
  9. Imagepng($im)
  10. ImageDestroy($im)
  11. ?>
?? ??
?? 2, PHP ??? ???? ??.

  1. // *********************** ***************** //
  2. // ??: ???? ??? ??
  3. // ????: $img ??? ?? ??
  4. // $new_img ??? ?? ???? ??, ?? ??? ???? ???? ???? ??
  5. // $text string content
  6. // text_size ??? ??
  7. // text_angle ?? ??? ?? ??
  8. // text_x ??? ?? x ??
  9. // text_y ??? ?? y ??
  10. // $text_font ?? ?? ??
  11. // $r, $g, $b ??? ?? RGB ?
  12. // *** *********************************** //
  13. ?? img_text($img, $new_img , $ text, $text_size, $text_angle, $text_x, $text_y, $text_font, $r, $g, $b){
  14. $text=iconv("gb2312","UTF-8",$text) ; ??>Header("??? ??: image/gif");
  15. $im = @imagecreatefromstring(file_get_contents($img)) ?? die("???? ?? ?????!")
  16. $color = ImageColorAllocate( $im, $r,$g,$b);
  17. //ImageTTFText(int im, int size, int angle, int x, int y, int col, ??? ?? ??, ??? ???):
  18. / / ? ??? TTF(TrueType Fonts) ?? ???? ???? ???.
  19. //????: size? ??? ?????.
  20. // angle? ??? ???, ?? ???? ?????. 0?? ??(???? ?????), 90?? ????? ??????. top ;
  21. // ? ???? x? y? ???? ?? ????(??? ?? ?????).
  22. // col? ???? ?????. Fontfile? ?? ??? ?????.
  23. / /text? ??? ?????.
  24. ImageTTFText($im, $text_size, $text_angle, $text_x, $text_y, $color, $text_font, $text)
  25. if ($new_img==""):
  26. ImageGif($im ); // ???? ???? ?? ??? ???.
  27. ImageGif($im,$new_img) // ???? ????? ???? ????.
  28. ImageDestroy( $im); / /??? ??, ??? ?? ??
  29. ?>
  30. ?? ??
  31. ?? 3, PHP ??? ????? PHP ??? ???? ??? ?????.

    1. /*
    2. * ??: PHP ??? ????(????? ??? ?? ???? ???)
    3. * ????:
    4. * $groundImage ?? ???, ? ????? ??? ???? ?? GIF, JPG ? PNG ??? ?????.
    5. * $waterPos ???? ??? 10?? ???? 0? ?? ?????. * 1? ?? ??, 2? ??? ??, 3? ??? ???? ?????.
    6. * 4? ?? ??, 5? ??, 6? ?????. right;
    7. * 7? ?? ??, 8? ?? ??, 9? ??? ??????.
    8. * $waterImage ??? ????, ? ??? ?? ???? ??????. ????? ?? GIF, JPG ? PNG ??? ?????.
    9. * $waterText ??? ????, ? ???? ????? ????, ASCII ??? ????, ???? ???? ????.
    10. * $textFont ??? ??. , ?? 1, 2, 3, 4 ?? 5, ???? 5???.
    11. * $textColor ??? ??, ?? 16?? ?? ?, ???? #FF0000(???)???. GD 2.0 ??, FreeType ??, GIF ??, GIF ??, JPG, PNG
    12. * $waterImage? $waterText? ??? ???? ?? ?? ?? ????. ?, $waterImage? ?? ?????.
    13. * $waterImage? ???? $waterString, $stringFont ? $stringColor ????? ???? ????.
    14. * ????? ??? ???? ???? $groundImage? ?????.
    15. * ???: longware @ 2004-11-3 14:15:13
    16. */
    17. ?? imageWaterMark($groundImage,$waterPos=0,$waterImage=””,$waterText=””,$ textFont=5,$textColor=”#FF0000″)
    18. {
    19. $isWaterImage = FALSE;
    20. $formatMsg = “? ?? ??? ?? ???? ?? ??? ?? ?????? ???? ???? GIF? ?????. ?? JPG, PNG ?????.”;
    21. //???? ?? ??
    22. if(!emptyempty($waterImage) && file_exists($waterImage))
    23. {
    24. $isWaterImage =
    25. $water_info = getimagesize($ waterImage );
    26. $water_w = $water_info[0];//???? ??? ?? ????
    27. $water_h = $water_info[1];//???? ??? ?? ????
    28. switch($ water_info[2 ])//???? ??? ?? ????
    29. {
    30. case 1:$water_im = imagecreatefromgif($waterImage);break
    31. case 2:$water_im = imagecreatefromjpeg($waterImage); break;
    32. ?? 3:$water_im = imagecreatefrompng($waterImage);break;
    33. default:die($formatMsg)
    34. }
    35. }//?? ??? ??
    36. if(!emptyempty( $groundImage) && file_exists($groundImage))
    37. {
    38. $ground_info = getimagesize($groundImage)
    39. $ground_w = $ground_info[0];// ?? ???
    40. $ground_h = $ground_info[1];//?? ??? ?? ????
    41. switch($ground_info[2])//?? ??? ?? ????
    42. {
    43. ?? 1:$ground_im = imagecreatefromgif($groundImage) ;break;
    44. ?? 2:$ground_im = imagecreatefromjpeg($groundImage);break
    45. ?? 3:$ground_im = imagecreatefrompng($groundImage);break; >default:die($formatMsg);
    46. }
    47. }
    48. else
    49. {
    50. die("?????? ? ??? ???? ????! ”);
    51. //???? ??
    52. if($isWaterImage)//?? ????
    53. {
    54. $w = $water_w
    55. $h = $water_h; >$label = "???"
    56. }
    57. else//??? ????
    58. {
    59. $temp = imagettfbbox(ceil($textFont*5),0,"./cour.ttf" , $waterText);//???? ??? ???? ??? ?? ????
    60. $w = $temp[2] - $temp[6]
    61. $h = $temp[3] - $temp[7] ;
    62. unset($temp);
    63. $label = "??? ??"
    64. }
    65. if( ($ground_w<$w) || ($ground_h<$h) )
    66. {
    67. echo "????? ???? ?? ???? ??? ?? ".$label." ?????? ??? ????? ??? ? ????! ”;
    68. return;
    69. }
    70. switch($waterPos)
    71. {
    72. case 0://random
    73. $posX = rand(0,($ground_w - $w)) ;
    74. $posY = rand(0,($ground_h - $h));
    75. break
    76. ?? ??? 1://1???
    77. $posY; = 0;
    78. break;
    79. case 2://2? ?? ??? ????.
    80. $posX = ($ground_w - $w) / 2
    81. $posY = 0;
    82. ??? 3://3? ??? ??
    83. $posX = $ground_w - $w;
    84. $posY = 0
    85. break
    86. ???; left
    87. $posX = 0;
    88. $posY = ($ground_h - $h) / 2
    89. break
    90. case 5://5? ??? ???
    91. $posX = ($ground_w - $w) / 2;
    92. $posY = ($ground_h - $h) / 2
    93. break
    94. case 6://6? ??? ??
    95. $posX = $ ground_w - $ w;
    96. $posY = ($ground_h - $h) / 2;
    97. break
    98. case 7://7? ?? ??
    99. $posX = 0; posY = $ground_h - $h;
    100. break;
    101. case 8://8? ?? ??? ?????.
    102. $posX = ($ground_w - $w) / 2; $ h;
    103. break;
    104. case 9://9? ??? ??
    105. $ground_w - $w
    106. $posY = $ground_h -
    107. break; ??>default://random
    108. $posX = rand(0,($ground_w - $w))
    109. $posY = rand(0,($ground_h - $h))
    110. break ;
    111. }
    112. //???? ?? ?? ?? ??
    113. imagealphablending($ground_im, true)
    114. if($isWaterImage)//??? ????
    115. {
    116. imagecopy($ ground_im , $water_im, $posX, $posY, 0, 0, $water_w,$water_h);//????? ?? ??? ??
    117. }
    118. else//??? ????
    119. {
    120. if( !emptyempty($textColor) && (strlen($textColor)==7) )
    121. {
    122. $R = hexdec(substr($textColor,1,2))
    123. $G = hexdec(substr ( $textColor,3,2));
    124. $B = hexdec(substr($textColor,5));
    125. }
    126. else
    127. {
    128. die("???? ??? ?? ?? ???? ????!");
    129. }
    130. imagestring( $ground_im, $textFont, $posX, $posY, $waterText, imagecolorallocate($ground_im, $R, $G, $B));
    131. }
    132. //生成水印后? ??
    133. @unlink($groundImage);
    134. switch($ground_info[2])//取得背景圖文字格式
    135. {
    136. case 1:imagegif($ground_im,$groundImage);break;
    137. ?? 2:imagejpeg($ground_im,$groundImage);break;
    138. ?? 3:imagepng($ground_im,$groundImage);break;
    139. ???:die($errorMsg);
    140. }
    141. //釋放內(nèi)存
    142. if(isset($water_info)) unset($water_info);
    143. if(isset($water_im)) imagedestroy($water_im);
    144. ?? ??($ground_info);
    145. imagedestroy($ground_im);
    146. }
    147. //————————————————————————————
    148. $id=$_REQUEST['id' ];
    149. $num = count($_FILES['userfile']['name']);
    150. print_r($_FILES['userfile']);
    151. print_r($_FILES['??? ??']['??']);
    152. ?? $num;
    153. ?? “
      ”;
    154. if(isset($id)){
    155. for($i=0;$i<$id;$i ){
    156. if(isset($_FILES) && !emptyempty($_FILES[' userfile']) && $_FILES['userfile']['size']>0)
    157. {
    158. $uploadfile = “./”.time().”_”.$_FILES['userfile' ][??][$i];
    159. ?? “
      ”;
    160. echo $uploadfile;
    161. if (copy($_FILES['userfile']['tmp_name'][$i], $uploadfile))
    162. {
    163. echo “??
      ”; $waterImage=”logo_ok1.gif”;//WaterMark($uploadfile,9,$waterImage)
    164. echo “";
    165. }
    166. else
    167. {
    168. echo “??
      ”;
    169. }
    170. }
    171. }
    172. }
    173. ?>
    174. for($a=0;$a<$id;$a ){
    175. echo “文件: ”;
    176. }
    177. ?>
    178. 復代碼
    179. ?? 4 ??? ???? ??

      1. /*-----
      2. **??: ??? ???? ?? ????? ???? ? ?????( ??? ?? ??? ???? ??) ??? ????
      3. ? ???? ???.
      4. **???: 2007-10-09
      5. **?????: 2007-10-09
      6. **??: 1. ?? gd ????? ??, iconv ?? ??(php5? ?? ???? ?? ??? ?? ??)
      7. 2. jpg/jpeg/gif/png ? ?? ??? ????? ???? ?? ??? ???? ????.
      8. 3. ???? ?? ????? ??? ?? ???? ???.
      9. 4. ?? ?:
      10. $objImg = new MyWaterDownChina()
      11. $objImg->Path = "images/ ";
      12. $objImg->FileName = "1.jpg";
      13. $objImg->Text = "HAHAKONGJIANHTTP://HI.BAIDU.COM/LYSONCN";
      14. $objImg-> Font = "./font/simhei.ttf";
      15. $objImg-> ;Run()
      16. **?? ??:
      17. ---------------* /
      18. class MyWaterDownChina{
      19. var $Path = "./"; //? ???? ???? ???? ???? ??? ?? ????? ?? ??
      20. var $FileName = ""; //?? ??(?: "1.jpg")
      21. var $Text = ""; //Picture ??? ???? ???? ???? ?????.
      22. var $TextColor = "#ffffff" // ??? ??, gif ??? ?? ?? ??? ???? ?????.
      23. var $TextBgColor = "#000000" / /??? ?? ??? ??
      24. var $Font = "c:// windows//fonts//simhei.ttf"; //?? ?? ????, ?? ??
      25. var $OverFlag = true; // ?? ???? ???? ??, ???? ???????. ???? ?? ?? "_water_down "? ?? ??? ?? ?? ?? ???? ?????. ?: "1.jpg" => "1_water_down.jpg" var $BaseWidth = 200; //?? ???? ?? ??? ??? >=200??? ???. ???? ?????.
      26. //-------------
      27. //??: ??? ???(php5.0 ??)
      28. //????: ??
      29. / /??: ??
      30. function __construct(){;}
      31. //------------
      32. //??: ??? ???(?? php5.0 ??)
      33. //????: ??
      34. //??: ??
      35. ?? __destruct(){;}
      36. //------ -------- --------
      37. //??: ??? ??? ???? ???? ????? ?????
      38. //????: ??
      39. //??: ??
      40. function Run()
      41. {
      42. if($this->FileName == "" || $this->Text == "")
      43. return
      44. //GD ????? ?? ?? ??
      45. if(false == function_exists("gd_info"))
      46. {
      47. echo "GD ?????? ???? ???? ?? ?? ???? ????? ??? ? ????."
      48. return; >}
      49. //?? ? ?? ??? ?? ?? ??
      50. $arr_in_name =explore(".",$this->FileName)
      51. //
      52. $inImg = $this-> ;Path.$ this->FileName
      53. $outImg = $inImg;
      54. $tmpImg = $this->Path.$arr_in_name[0]."_tmp.".$arr_in_name[1]; /????? ??? ??, ?? ??
      55. if(!$this->OverFlag)
      56. $outImg = $this->Path.$arr_in_name[0]."_water_down.".$arr_in_name[1];
      57. //??? ?? ?? ??
      58. if(!file_exists($inImg))
      59. return
      60. //??? ?? ????
      61. $groundImageType = @getimagesize($inImg) ;
      62. $imgWidth = $groundImageType[0];
      63. $imgHeight = $groundImageType[1]
      64. $imgType = $groundImageType[2]
      65. if($imgWidth < $this-> ;BaseWidth) //?? ?? ??, ???? ??
      66. return
      67. //??? jpg/jpeg/gif/png? ?? ?? ???? ??
      68. switch($imgType)
      69. {
      70. ?? 1:
      71. $ image = imagecreatefromgif($inImg);
      72. $this->TextBgColor = "#ffffff"; //gif ???? ??? ???? ????? ???? ???? ??
      73. break;
      74. ?? 2:
      75. $image = imagecreatefromjpeg($inImg);
      76. break;
      77. ?? 3:
      78. $image = imagecreatefrompng($inImg); ??>break;
      79. ???:
      80. return
      81. break
      82. }
      83. //?? ??
      84. $color = @imagecolorallocate($image,hexdec(substr($this->) ;TextColor,1,2)),hexdec(substr( $this->TextColor,3,2)),hexdec(substr($this->TextColor,5,2))) //??? ??
      85. //??? ??? ? ??? ??
      86. $newHeight = $imgHeight 20;
      87. $objTmpImg = @imagecreatetruecolor($imgWidth,$newHeight)
      88. $colorBg = @imagecolorallocate($objTmpImg,hexdec(substr($this->TextBgColor,1,2)),hexdec(substr($this->TextBgColor,3,2)),hexdec(substr($this->TextBgColor ,5,2))); //???
      89. //???? ??? ???
      90. @imagefill ($objTmpImg,0,0,$colorBg)//?? ??? ?? ?? ????
      91. @imagecopy($objTmpImg,$image, 0,0,0,0,$imgWidth,$imgHeight)
      92. //??? ???? ??? ?? ??
      93. $objText = $this->createText($this->Text);//??? ???? ???? ?? ??
      94. $x = 5
      95. $y = $newHeight-5; ??>//??? ???? ??
      96. @imagettftext($objTmpImg, 10,0,$x,$y,$color,$this->Font,$objText)
      97. //? ?? ??, ?? ??
      98. switch($imgType)
      99. {
      100. ?? 1:
      101. imagegif($objTmpImg,$tmpImg)
      102. break;
      103. ?? 2:
      104. imagejpeg($objTmpImg ,$tmpImg);
      105. break;
      106. imagepng($objTmpImg,$tmpImg);
      107. default:
      108. return; >}
      109. //??? ??
      110. @imagedestroy($ objTmpImg)
      111. @imagedestroy($image)
      112. //?? ?? ???
      113. if($this->OverFlag)
      114. {
      115. //?? ??? ????
      116. @unlink ($inImg)
      117. @rename($tmpImg,$outImg)
      118. else
      119. {
      120. //?? ???? ???? ???
      121. @rename($tmpImg,$outImg )
      122. }
      123. }
      124. //---------
      125. //Function : ???? ??? ?? ??
      126. //????: ??
      127. //Return : ???? ??? ?? ??
      128. function createText($instring)
      129. {
      130. $outstring=""
      131. $ max=strlen($instring);
      132. for($i=0; $i<$max;$i )
      133. {
      134. $h=ord($instring[$i])
      135. if($h>=160 && $i<$max-1)
      136. {
      137. $outstring .= "&#".base_convert(bin2hex(iconv("gb2312","ucs-2",substr( $instring,$i,2)),16,10)."; "
      138. $i ;
      139. }
      140. else
      141. {
      142. $outstring .= $instring[$i ];
      143. }
      144. }
      145. return $outstring;
      146. }
      147. }//class
      148. ?>
      149. ?? ??
? ????? ??
? ?? ??? ????? ???? ??? ??????, ???? ?????? ????. ? ???? ?? ???? ?? ??? ?? ????. ???? ??? ???? ???? ??? ?? 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