Posts Mentioning RSS Toggle Comment Threads | Keyboard Shortcuts

  • admin 10:59 am on 2009年12月31日 Permalink | 登录留下评论  

    php utf-8 with out bom整死我了 

    不知道php utf-8编码方式要搞什么去掉bom的操作,为什么做成不去也可以一样用呢?!

    还有Editplus有问题. 当文档里没有中文时无法保存成为 utf-8 with out bom 方式, 保存之后打开又变成了ASCII编码了 .必须在文档里写个汉字才能保存为utf-8 with out bom编码

    php写的去掉网站目录下的文档bom很好用
    下载链接:http://down.admin5.com/code_php/17490.html

    其它相关链接
    http://www.phpv.net/html/1382.html

     
  • admin 9:54 pm on 2009年12月25日 Permalink  

    PHP插件模型 

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    
     
    function toarray($str,$arg)
    {
    	return explode($arg[0],$str);
    }
    function bbb($str,$arg)
    {
    	return "<strong>".$str."</strong>\n";
    }
    function ccc($str)
    {
    	$str = mp($str,'toarray',array(','));
    	foreach($str as $val){
    		echo "<div>{$val}</div>";
    	}
    }
    function mp($str,$hp,$arg=array())
    {
    	return $hp($str,$arg);
    }
    $str = '1,2,3,4,5,6';
    echo mp($str,'bbb');
    echo mp($str,'ccc');
     
c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
esc
cancel