ÔÚphpͼƬÖÐÊäÈëÖÐÎÄÎÄ×Ö½â¾öÂÒÂë
´úÂ룺
<?php
$im = imagecreatefromjpeg("ok.jpg");
$black = @imagecolorallocate($im, 0,0,0);
$jpgnumid = "ÕâÊÇǶÈ뵽ͼƬµÄÎÄ×Ö£¬½â¾öÁËÂÒÂëÎÊÌâ,
ÉÏÃæµÄok.jpgÊÇͬĿ¼ÏµÄÕÕƬ.ʹÓÃËüʱ£¬»¹ÐèÒªÓÐiconv
Ä£¿é£¡Ò²¾ÍÊÇ˵ÔÚphp.iniÀォ
[iconv]
iconv.input_encoding = ISO-8859-1
iconv.internal_encoding = ISO-8859-1
iconv.output_encoding = ISO-8859-1
ÕâÈýÐеÄ×¢ÊÍÈ«²¿È¥µô£¡ ";
$jpgnumid = @iconv("GB2312","UTF-8",$jpgnumid);
@imagettftext ($im,25,0,0,500,$black,"MissYuan_ÃÔÄã¼òÁâÐÄ.TTF",$jpgnumid);
header("Content-type: image/jpeg");
imagejpeg($im);
imagedestroy($im);
?>
Ïà¹ØÎĵµ£º
×î½üÔÚѧPHP £¬¾õµÃ±È½Ï¼òµ¥£¬¿ÉÄÜÊÇÒòΪÓÐÒ»µã±à³Ì¾ÑéµÄÔµ¹Ê°É£¬½ñÌì½Ì´ó¼ÒÓÃPHPÖÆ×÷ͨѶ¼£¬¹¦ÄܱȽϼòµ¥£¬µÚÒ»´Î×öÍøÒ³½Ì³Ì£¬¶øÇÒ²»ÊǺÜÓÐPHP¾Ñ飬ËùÒÔ²»×ãµÄµØ·½´ó¼ÒÁôÑÔ¸æËßÎÒ£¬·Ï»°²»¶à˵£¬ÏÖÔÚ¿ªÊ¼
»·¾³£ºWindows XP SP3 + PHP5 + apache2 + mysql5
Ê×ÏÈ´´½¨Ò»¸öÊý¾Ý¿â£¬ÃûΪ MyDB £¨ÎÒÕâÀïʹÓõÄÊÇMySQL£©£¬SQL ......
ÔÚÍøÉÏ¿´Á˺ܶà¹ØÓÚwindows2003+iis6+php+mysql ·þÎñÆ÷ÅäÖõÄÎÄÕ£¬´óÌåÉ϶¼ÊÇ»¥Ïà³Ï®£¬²»¹ýһЩ¹«¹²µÄÐÅÏ¢»¹ÊǺÜÕýÈ·µÄ£¬µ«ÊÇÕë¶ÔһЩÌرðµÄ»úÆ÷»òÕßÒòΪ¸öÈ˲»Í¬µÄÅäÖÃ×ܲ»ÄÜ°´ÕÕÎÄÕµÄÄÚÈݲÙ×÷³É¹¦£¬ÏÂÃæ˵һÖÖ½ÏΪ¼òµ¥µÄ²Ù×÷·½·¨£¬²½ÖèÈçÏ£º
1.iis°²×°£¨ÂÔ£©
2.ÏÂÔØAppServ²¢°²×°
3.ÔÚc:\½¨php5Îļþ¼Ð£¬È»ºóÔÙphp5 ......
¸ãÁ˺ܾᣡ£ÖÕÓÚ·¢ÏÖÔÀ´ÊÇȨÏÞÎÊÌâ¡£¡£
2ÐÐÃüÁî¸ã¶¨
grant all privileges on rogue.* to admin@localhost identified by 'admin' with grant option
grant all privileges on rogue.* to admin@'%' identified by 'admin' with grant option
¾µäÁË¡£¡£¡£
ħÁ¦Ë½·þÍøÒ³¶Ë¸ã¶¨¿©~~ ......
<?php
* xCopy("feiy","feiy2",1):¿½±´feiyϵÄÎļþµ½ feiy2,ÍÆÏúÔ±µÄÒ»Ìì,°üÀ¨×ÓĿ¼
*²ÎÊý˵Ã÷£º
* $destination:Ä¿µÄĿ¼Ãû
......
PHP»º´æ¼¼ÊõÏê½â
Ò»¡¢»º´æ¼¼Êõ:
ÓÐЩÐÅÏ¢±È·½¾³£²»±äµÄ,µ«ÊÇ»¹ÊÇÄܱäµÄÐÅÏ¢·ÅÔÚ»º´æÖÐÒÔ¼Ó¿ìÏÔʾËÙ¶È,ÕâÊǺÜÓмÛÖµµÄ,ËùνµÄ»º´æ,ͨË×µÄÀí½â¾ÍÊÇһЩ±£´æÔÚ·þÎñÆ÷¶ËµÄ¹²ÓÃЊϢ.ËüÊÇÓÚ·þÎñÆ÷ͬÉúËÀµÄ,ÎÒÃÇÔÚ±£´æ»º´æµÄʱºò¿ÉÒÔÖ¸¶¨Ï´θüеÄʱ¼äµÄÅжÏ,±È·½ÒªÔÚ5·ÖÖÓ¸üÐÂÒ»´Î,¿ÉÒԼǼÉϴθüеÄʱ¼ ......