![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
php
quanquanfly
这个作者很懒,什么都没留下…
展开
-
smarty自定义插件
1.$smarty->setPlugin("../../plugins");2.实例:block.purchases.php文件_tag_stack);//找出父块函数 if(empty($params['name'])) $params['name'] = "purchases";//本来是空的 if(empty($smarty->blockvars[$l])) { $sqlstr = "select * from {$config->db_prefix}purchases w原创 2010-07-01 15:27:00 · 1148 阅读 · 1 评论 -
php基本知识
1.php数组基础:<?php $ary2 = "zqhung_hongzequan_zqhong"; $arr3 =explode("_",$ary2);//拆分字符串 echo $arr3[1];//打印出来的结果是hongzequan $ary1 = array("aa","bb"); $ary1[0]="zqhung";//修改数组中的值 echo $ary1[原创 2010-05-29 14:57:00 · 470 阅读 · 0 评论 -
在线编辑器fckeditor
include("fckeditor.php"); $sBasePath = $_SERVER['PHP_SELF'] ;//获取当前位置 $sBasePath = dirname($sBasePath).'/'; //echo $sBasePath;$oFCKeditor = new FCKeditor('con') ;$oFCKeditor->BasePath = $sBasePath ;echo $_POST[title]."";//输出文本框添加的title内容echo $_POST[con]."原创 2010-06-17 15:21:00 · 512 阅读 · 0 评论