flex Óë php ÔÚÏßÉú³ÉÎÄ×ÖͼƬµÄÒ»¸ö¼òµ¥¿ò¼Ü
ÒòΪ×î½ü×öÒ»¸öDIYµÄÉè¼ÆÆ÷£¬ÐèÒªÈÃÓû§Ñ¡Ôñij¸ö×ÖÌ壬²¢ÇÒÖ§³ÖÐýת£¬ÍÏÀµÈ²Ù×÷¡£Ö±½ÓʹÓÃÎı¾¿òÊDz»Ðеģ¬ÒòΪflex²»Ö§³Ö×ÖÌåµÄÖ±½ÓÐýת£¬´ó¼Ò¿ÉÒÔ³¢ÊÔһϣ¬Èç¹ûÑ¡ÔñÁËtext¿Ø¼þ£¬ÎÄ×־Ϳ´²»µ½ÁË£¬Óиö°ì·¨ÊÇ°ÑÎÄ×ÖembedǶÈëµ½swfÖÐÈ¥£¬ÕâÑù¾ÍÖ§³ÖÁË¡£
µ«ÊÇÓ¢ÎÄ»¹ºÃ£¬×ÖÌåÎļþ²»´ó£¬ÖÐÎĵĻ°¶¯éü¼¸¸öM£¬Õâ¸ö×ö·¨ºÜ²»ÏÖʵ£¬ÓÚÊÇÏëµ½ÁíÍâÒ»¸ö½â¾ö·½°¸£¬Ó÷þÎñÆ÷×ÖÌå¡£
×öÁ˸öphp demo£¬½ÓÊÕÎÄ×Ö£¬²¢¸ù¾ÝÖ¸¶¨µÄ×ÖÌåÎļþÈ¥Éú³ÉͼƬ£º
<?php
$str = $_GET['str'];
$fontpath= $_GET['fontpath'];
if($str==null||$str==''){
return;
}else{
$str = iconv("GB2312", "UTF-8", $str);//ΪÁËÖ§³ÖÖÐÎÄ
}
$Size = 72;
if($fontpath==null||$fontpath==''){//×ÖÌåµÄ·¾¶
$fontpath='fzse_gbk.ttf';//¿ÉʹÓÃttf×ÖÌå
}
//¶¯Ì¬¼ÆËãÎÄ×ÖÕ¼ÓÃͼƬ´óС
$txts = imagettfbbox($Size,0,$fontpath,$str);
$YX1 = abs($txts[5])*0.23;
$YX2 = abs($txts[2])*0.02;
$IX = abs($txts[2])+$YX2;
$IY = abs($txts[5])+$YX1;
$im = imagecreate($IX,$IY);
$white = imagecolorallocate($im,0xFF,0xFF,0xFF);
imagecolortransparent($im,$white);
$black = imagecolorallocate($im,0x00,0x00,0x00);
imagettftext($im, $Size, 0, 0, $IY-$YX1,$black,"$fontpath",$str);
header("Content-type:image/png");
imagepng($im);//Êä³öµ½¿Í»§¶Ë
imagedestroy($im);
?>
ÕâÑùµÄ»°swfÅäÖÃÒ»¸öxml¾Í¿ÉÒÔÔÚ·þÎñÆ÷¶Ë¶¯Ì¬µÄ¼ÓÈëÈκÎ×ÖÌåÁË
<ttfs>
<font name="·½ÕýÉÙ¶ù" snap="assets/myfonts/fontsnap/impact.jpg" path="fzse_gbk.ttf" lan="ch" />
<font name="·½ÕýÉÙ¶ù2" snap="assets/myfonts/fontsnap/impact.jpg" path="fzse_gbk.ttf" lan="ch" />
<font name="·½ÕýÉÙ¶ù3" snap="assets/myfonts/fontsnap/impact.jpg" path="fzse_gbk.ttf" lan="ch" />
<font name="Ó¢ÎÄ×ÖÌå1" snap="/createfont/snap/demo1.png" path="fzse_gbk.ttf" lan="en" />
<font name="Ó¢ÎÄ×ÖÌå2" snap="/createfont/snap/demo1.png" path="fzse_gbk.ttf" lan="en" />
<font name="Ó¢ÎÄ×ÖÌå3" snap="/createfont/snap/demo1.png" path="fzse_gbk.ttf" lan="en" />
</ttfs>
[img]http://www.idute.co
Ïà¹ØÎĵµ£º
ÍøÉÏ¿´ÁËsession.save_pathºÃÏñÕâ¸ösessionÎÒ»¹Ã»ÓÐÔõôÓùýÄØ£¬¿´À´ÓбØÒªÑо¿Ò»Ï°¡
½ñÌìÌØÒâµÄ¿´ÁËÒ»ÏÂÎĵµ£¬¿´Ò»ÏÂÎĵµÈ·ÊµÓÐÕâô¶«Î÷£¬Ò²Ã»Óп´µ½Ê²Ã´Àý×Ó¾Í×Ô¼ºËæ±ãµÄдÁËÒ»µã¿´¿´
´úÂëÈçÏ echo session.save_path
´ò¿ªä¯ÀÀÆ÷²é¿´¾¹È»ÏÔʾ sessionsave_path ²»¶Ô°¡£¬Ôõô»áÊÇÕâ¸öÄØ£¬¿´¿ ......
<?php
class Access//AccessÊý¾Ý¿â²Ù×÷Àà
{
var $databasepath,$constr,$dbusername,$dbpassword,$link;//ÀàµÄÊôÐÔ
function Access($databasepath,$dbusername,$dbpassword)//¹¹Ô캯Êý
{
$this->databasepath=$databasepath;
$this->username=$d ......
9.3 ͨ¹ýPHP²Ù×÷AccessÊý¾Ý¿â
9.3.1 Á¬½ÓAccessÊý¾Ý¿â
ÔÚPHPÖÐÁ¬½ÓAccessÓÐÈçÏÂ3ÖÖ·½Ê½¡£
£¨1£©´´½¨ÏµÍ³Êý¾ÝÔ´£¬ÓÃPHPÌṩµÄODBCº¯Êý
¼´¿É¡£
£¨2£©Í¬Ñù¿ÉÒÔʹÓÃPHPµÄODBCº¯Êý£¬µ«²»´´½¨
Êý¾ÝÔ´¡£¿ª·ÅÊý¾Ý¿âÁ¬½Ó£¨Open DateBase
Conection£¬ODBC£©ÊÇWindows Open
Server£¨¿ª·Å·þÎñ£©API£¨WOSA£©²úÆ·Ö®Ò ......
Perl MemcachedµÄ¿Í»§¶ËÐòÁл¯¶ÔÏó²ÉÓõÄÊÇStorableÄ£¿éµÄnfreeze·½·¨£¬¶øÕâ¸ö·½·¨ÓÖµ÷ÓÃÁËcÀ©Õ¹µÄdo_store·½·¨£»·´ÐòÁл¯Ê¹ÓõÄÊÇStorableÄ£¿éµÄthaw·½·¨£¬¶øÕâ¸ö·½·¨ÓÖÊǵ÷ÓõÄcÀ©Õ¹µÄdo_retrieve·½·¨¡£
¶øÔÚPHPÖУ¬½øÐеÄÈ´ÊÇserializeºÍunserialize²Ù×÷¡£Ôì³ÉÁËÎÞ·¨Õý³£¶ÁÈ¡µÄ½á¹û¡£
Perl´æ´¢Ò»¸ö('a', 'c')Êý×éµÄÒýÓ ......