ÔÚ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
$type='a';
$target='type';
$a=array(1,2,3);
a($target);
function a($type)
{
global $$type;
var_dump($$type);
}
?>
Ô¤¼ÆÊä³öµÄÊÇstring(1)”a”
¿ÉÊǽá¹ûÊÇ
Notice: Undefined variable: a in D:\web\global.php on ......
PHP³ÌÐòÉè¼ÆÖÐÖÐÎıàÂëÎÊÌâÔø¾À§ÈźܶàÈË£¬µ¼ÖÂÕâ¸öÎÊÌâµÄÔÒòÆäʵºÜ¼òµ¥£¬Ã¿¸ö¹ú¼Ò(»òÇøÓò)¶¼¹æ¶¨Á˼ÆËã»úÐÅÏ¢½»»»ÓõÄ×Ö·û±àÂ뼯£¬ÈçÃÀ¹úµÄÀ©Õ¹
ASCII Âë, ÖйúµÄ GB2312-80£¬ÈÕ±¾µÄ JIS
µÈ¡£×÷Ϊ¸Ã¹ú¼Ò/ÇøÓòÄÚÐÅÏ¢´¦ÀíµÄ»ù´¡£¬×Ö·û±àÂ뼯Æð×Åͳһ±àÂëµÄÖØÒª×÷Óá£×Ö·û±àÂ뼯°´³¤¶È·ÖΪ
SBCS(µ¥×Ö½Ú×Ö·û¼¯)£¬DBCS( ......
#./configure --prefix=/usr/local/php5 --with-config-file-path=/usr/local/php5 --with-apxs2=/usr/local/apache2/bin/apxs --with-bz2 --with-curl - --with-curlwrappers --enable-ftp --enable-sockets --disable-ipv6 --with-gd --with-jpeg-dir=/usr/local --with-png-dir=/usr/local --w ......
¡¡¡¡¹¹Ô캯ÊýÊÇPHPÖÐ×ÜÒªµÄ»ù±¾Óï·¨£¬Ê²Ã´Êǹ¹Ô캯ÊýÄØ?ÎÒÃÇÕâÀï¾ÍÒ»ÆðÀ´¿´¿´PHP¹¹Ô캯Êý¡£Èç¹ûÄãÔÚÒ»¸öÀàÖÐÉùÃ÷Ò»¸öº¯Êý,ÃüÃûΪ__construct,Õâ¸öº¯Êý½«±»µ±³ÉÊÇÒ»¸ö¹¹Ô캯Êý²¢ÔÚ½¨Á¢Ò»¸ö¶ÔÏóʵÀýʱ±»Ö´ÐÐ.Çå³þµØËµ,__ÊÇÁ½¸öÏ»®Ïß.¾ÍÏñÆäËüÈκκ¯ÊýÒ»Ñù,¹¹Ô캯Êý¿ÉÄÜÓвÎÊý»òÕßĬÈÏÖµ.Äã¿ÉÒÔ¶¨ÒåÒ»¸öÀàÀ´½¨Á¢Ò»¸ö¶ÔÏó²¢½ ......
×î½üµÄÏîÄ¿ÖÐʹÓõ½¼Æ»®ÈÎÎñ£¬Í¨¹ýbatÖ´ÐÐphpÎļþ£¬È»¶ø·¢ÏÖphpÎļþÔÚä¯ÀÀÆ÷ÖпÉÒÔÖ´Ðеĺܺ㬶øbatµ÷ÓÃȴʼÖÕûÓз´Ó¦
autosave.batÖÐÄÚÈÝÈçÏÂ
D:\software\php\php.exe -q D:\web\works\mymedia\autosave.php
ÆäÖÐautosave.phpÎļþÖаüº¬ÆäËûµÄÀàʹÓÃÏà¶Ô·¾¶
Ö±½ÓÔÚautosave.phpÀïÃæÊä³öecho 1;
¿ÉÒÔÔÚcommondÃüÁî ......