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

php ´úÌæ echo ·½·¨, »òÕßphpµÄ Ìæ»»Ó﷨ʹÓ÷½·¨.

ÐÞ¸Äphp.iniÎļþ.
ÈçÏÂ.
1. short_open_tag = Off
Èç¹û¸Ä³ÉOn
ÎÒÃÇ¿ÉÒÔÔÚphpÖÐ
<?= $variable?>À´´úÌæ <?php echo $variable ?>
2. asp_tags = Off
Èç¹û¸Ä³ÉOn
ͬÑù¿ÉÒÔÔÚphpÖÐ
<%= $variable %> À´Ìæ´ú<?php echo $variable ?>
ÔõôÑù. ·½±ã°É????
¼ÌÐøÑо¿~~~~~~!!!!~~!~!~!~!~!~!~!


Ïà¹ØÎĵµ£º

PHPÊý×éµÄÅÅÐò


×òÌìÉÏ°àµÄʱºò£¬·¢ÏÖgoogle adµÄ¹ã¸æÉÏÓÐÁËÊÕÈ룬µ«ÊÇÏ°ëÖ®ºó¾ÓÈ»·¢ÏÖad±»“0”ÁË¡£È¥ÍøÉϲéÁËÏà¹Ø×ÊÁÏ£¬·¢ÏÖÁËÎÊÌâ¡£
ÄÇôGoogleÊÇÈçºÎÈ·¶¨AdsenseÓû§×ÔÐеã»÷¹ã¸æµÄÄØ£¿
¼Çס£¬¾ÍÔÚÄãÔø¾­×¢²áGoogle AdsenseÓû§µÄʱºò£¬Google¾ÍÖªµÀÄãµÄIPµØÖ·£¬×ÓÍøÒÔ¼°ÄãµçÄÔϵͳµÄÆäËû×ÊÁÏ¡£ÔÚGoogleµÄÊý¾Ý¿âÖÐÒ»Ö±¼ ......

php ½ØÈ¡utf 8×Ö·û´®

ÕÒÁ˺ܶàÕâÑùµÄº¯Êý£¬»¹ÊǾõµÄÕâ¸ö×îºÃÁË
$a = 'aadfdsf¶á¶¥ÌæÒ»¿Ý»ù22245¶¥ÌæsdffhѹÏÂ';
/**
* ½ØÈ¡utf-8×Ö·û
* @param string $string
* @param int$length
*
* return string
*/
function cutstr($string, $length) {
preg_match_all("/./u", $string, $info);
$i = 0;
$str = '';
foreach($inf ......

PHPÖÐÒ»ÖÖ×Ö·û´®µÄµ¹Ö÷½·¨

Ç°¶Îʱ¼äÈ¥Ò»¼Ò¹«Ë¾ÃæÊÔ£¬ÓÐÒ»µÀÌâÄ¿¾ÍÊÇ£ºÔõô°Ñ¸ø¶¨µÄÒ»¸ö×Ö·û´®ÄæÐò£¬×Ö·û´®ÖаüÀ¨ÖÐÎÄ
ÓÉÓÚµ±Ê±Ã»ÓлشðÉÏÀ´£¬ºóÀ´»Øµ½ÏÈѧУÈÏÕæÏëÁËÏ£¬Ò²ÔÚÍøÉÏÕÒÁËһЩ×ÊÁÏ£¬°´ËûÃǵķ½·¨È¥ÊµÏÖ£¬¿É½á¹û¶¼ÓÐÂÒÂ룡߯ÓôÃÆ£¬ÓÖ¹ýÁË»á¶ùÏë³öÀ´ÁËÕâ¸ö·½·¨ÈçÏ£º
------------------------------------------------------------------ ......

PHP¹¹Ô캯Êý


¡¡¡¡¹¹Ô캯ÊýÊÇPHPÖÐ×ÜÒªµÄ»ù±¾Óï·¨£¬Ê²Ã´Êǹ¹Ô캯ÊýÄØ?ÎÒÃÇÕâÀï¾ÍÒ»ÆðÀ´¿´¿´PHP¹¹Ô캯Êý¡£Èç¹ûÄãÔÚÒ»¸öÀàÖÐÉùÃ÷Ò»¸öº¯Êý,ÃüÃûΪ__construct,Õâ¸öº¯Êý½«±»µ±³ÉÊÇÒ»¸ö¹¹Ô캯Êý²¢ÔÚ½¨Á¢Ò»¸ö¶ÔÏóʵÀýʱ±»Ö´ÐÐ.Çå³þµØ˵,__ÊÇÁ½¸öÏ»®Ïß.¾ÍÏñÆäËüÈκκ¯ÊýÒ»Ñù,¹¹Ô캯Êý¿ÉÄÜÓвÎÊý»òÕßĬÈÏÖµ.Äã¿ÉÒÔ¶¨ÒåÒ»¸öÀàÀ´½¨Á¢Ò»¸ö¶ÔÏó²¢½ ......

ÔÚ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_encodin ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ