Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ʵÀý½²½âphpʵÏÖÖÐÎÄˮӡµÄ´úÂë

ÒÔÏÂÊÇÀûÓÃphpʵÏÖÖÐÎÄˮӡµÄ´úÂë¡£
<?php
Header("Content-type: image/png");      /*֪ͨä¯ÀÀÆ÷,ÒªÊä³öͼÏñ*/
$im       = imagecreate(400 , 300);        /*¶¨ÒåͼÏñµÄ´óС*/
$gray     = ImageColorAllocate($im , 235 , 235 , 235);
$pink     = ImageColorAllocate($im, 255 , 128 , 255);
/*
$fontfile = "C:\WINDOWS\Fonts\SIMHEI.TTF";
²»ºÃÒâ˼,Õâ¾äÀÏÊÇÕ³ÉϺóÒ»Ìá½»¾Í¶ªÁË,²»ÖªµÀÊÇÔõô»ØÊÂ,Ïë²âÊÔµÄÅóÓÑÃǽ«×¢ÊÍÈ¥ÁËÏÖ²âÊÔ°É
*/
/* $fontfile ×ÖÌåµÄ·¾¶,ÊÓ²Ù×÷ϵͳ¶ø¶¨,¿ÉÒÔÊÇ simhei.ttf(ºÚÌå) , SIMKAI.TTF(¿¬Ìå) , SIMFANG.TTF(·ÂËÎ) ,SIMSUN.TTC(ËÎÌå&ÐÂËÎÌå) µÈ GD Ö§³ÖµÄÖÐÎÄ×ÖÌå*/
$str   = iconv('GB2312','UTF-8','php°®ºÃÕßphpfans.net');     /*½« gb2312 µÄ×Ö·û¼¯×ª»»³É UTF-8 µÄ×Ö·û*/
ImageTTFText($im, 30, 0, 50, 140, $pink , $fontfile , $str);
/* ¼ÓÈëÖÐÎÄˮӡ */
Imagepng($im);
ImageDestroy($im);
?>
<?php
header("Content-type:image/png");
$pic=imagecreatefromjpeg("itwis.jpg");
$color1 = imagecolorallocate($pic,255,255,255);
$font1  = "C:\WINDOWS\Fonts\STZHONGS.TTF";
$info = "ITÖªµÀÍøitwis.com";
$info = iconv("GB2312","UTF-8",$info);
imagettftext($pic,12,0,10,20,$color1,$font1,$info);
imagepng($pic);
imagedestroy ($pic);
?>
±¾ÎÄÀ´×Ô: ITÖªµÀÍø(http://www.itwis.com) Ïêϸ³ö´¦²Î¿¼£ºhttp://www.itwis.com/html/php/phpskill/20080703/1925.html


Ïà¹ØÎĵµ£º

phpÅäÖÃÎļþ½âÎö ÉîδÀ´

PHP]
;;;;;;;;;;;
; WARNING ;
;;;;;;;;;;;
; This is the default settings file for new PHPinstallations.
; By default, PHP installs itself with a configuration suitablefor
; development purposes, and *NOT* for production purposes.
; For several security-oriented considerations that should betak ......

php³£ÓÃÀàÕûÀí

תÔØ£ºhttp://www.phpjs.cn/article_90.html
php³£ÓÃÀàÕûÀí
ʱ¼ä£º2009-12-19 20:45 À´Ô´£ºÈËÁ¦·½ ×÷Õߣºsyuanq µã»÷£º236
ÔÚʵ¼Ê¿ª·¢¹ý³Ì»á¾­³£»áÓöµ½Ò»Ð©Öظ´µÄ²Ù×÷£¬Èç¹ûÿ´Î¶¼Òª×Ô¼ºÈ¥ÊµÏÖÕâÎÞÒɼÓÖØÁË×Ô¼ºµÄ¹¤×÷Á¿£¬ÏÂÃæ¶ÔһЩ¿ÉÄܾ­³£Óõ½µÄÀà×ö¸öÕûÀí£º
ͼ±í¿â
ÏÂÃæµÄÀà¿â¿ÉÒÔÈÃÄãºÜ¼òµ¥¾ÍÄÜ´´½ ......

phpµÄ°²×°Óëµ÷ÊÔ

1.°Ñ½âѹµÄphp-5.2.6-Win32.zipÖØÃüÃûΪphp5¡£²¢¸´ÖƵ½DÅÌĿ¼Ï¡£¼´°²×°Â·¾¶Îª D:\php5
2.ÕÒµ½phpĿ¼Ï嵀 php.ini-dist»ò php.ini.recommendedÎļþ£¬ÖØÃüÃûΪ php.ini
3.ÔÙ°ÑphpĿ¼ÏµÄphp5ts.dll,libmysql.dll¸´ÖƵ½Ä¿Â¼ c:\windows\system32Ï¡£
4.°Ñphp5\extĿ¼ÏµÄphp_gd2.dll,php_mysql.dll,php_mbstring.dllÎ ......

Apache¡¢Tomcat¡¢IIS£¨PHP¡¢JSP¡¢ASP£©¹²´æʱµÄÉèÖÃ

1¡¢·Ö±ð°²×°Èý¸ö»·¾³£¬²¢ÉèÖò»Í¬¶Ë¿Ú
PHP:80
JSP:8080
ASP:8081
2¡¢ÉèÖÃ/Apache2/conf/httpd.conf
È¥µôÒÔÏÂÈýÐÐÇ°µÄ×¢ÊÍ£º
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_http_module modules/mod_proxy_http.so
¼ÓÈëÒÔϼ¸ÐУº ......

PHPÊÇ×îºÃµÄÍøÕ¾¿ª·¢ÓïÑÔ

×÷Ϊһ¸öȫеĻ¥ÁªÍøÏîÄ¿£¬ÓÐʱºò»áÃæÁÙÒ»¸öÑ¡ÔñʲôÑùµÄ¿ª·¢ÓïÑÔµÄÎÊÌâ¡£
ÎÒ˵µÄÕâ¸öÓÐʱºò£¬ÆäʵÊÇÖ¸ÏÖÓеÄÍŶÓÖУ¬Ã»Óм¼Êõ¿ª·¢µÄ³ÉÔ±µÄÇé¿ö¡£Èç¹ûÒѾ­ÓÐÁËÒ»¸ö»òÕ߶à¸ö¼¼Êõ¿ª·¢ÈËÔ±£¬µ±È»ÊÇÑ¡ÔñÏÖÓгÉÔ±×îÊìϤºÍ×îÉó¤µÄÓïÑÔÁË¡£
ÄÇô¶ÔÓÚÒ»¸ö»¹Ã»Óм¼Êõ³ÉÔ±µÄÍŶӣ¬Ó¦¸ÃÑ¡ÔñʲôÑùµÄ¿ª·¢ÓïÑÔÄØ£¿»Ø´ðÕâ¸öÎÊÌ⣬Ê×Ï ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ