日志样式

如何在织梦DEDECMS上运行php代码和mysql语句



一、织梦DEDECMS运行php代码

举例1:

{dede:name runphp='yes'}

$str = "hello ";

@me = $str;

@me .= "world";

{/dede:name}

结果:hello world

说明:"name"为任意定义的名字,@me 表示当前的值,也就是要输出最后一个@me的值。

 


 

举例2

{dede:field runphp='yes'}

$str = "world";

$DedeMeValue="hello ";

$DedeMeValue .= $str;


上一篇:织梦DEDECMS软件列表页添加下载次数的教程 下一篇:织梦关键词维护里面字数多的词优先字数少的词