子罕言利与命与仁

随笔分类 -  PHP

摘要:控制器 vendor('wechat.jssdk'); $jssdk =new JSSDK("appid", "appsecret"); $signPackage = $jssdk->GetSignPackage(); $this->assign('signPackage',$signPackage 阅读全文
posted @ 2019-05-21 16:51 日出的幻景
摘要:<?php /** * Respose A Http Request * * @param string $url * @param array $post * @param string $method * @param bool $returnHeader * @param string $co 阅读全文
posted @ 2018-11-30 10:19 日出的幻景
摘要://输出一段utf-8编码的html $this->show('<p>欢迎使用 <b>ThinkPHP</b>!</p>','utf-8'); 字符串替换$br=str_replace("/>", "/><br />", $con); php把文本框回车转换成html换行 $aa=@ereg_rep 阅读全文
posted @ 2018-10-31 09:10 日出的幻景
摘要:$str = preg_replace("/(<a.*?>)(.*?)(<\/a>)/", '\1<span class="link">\2</span>\3', $str); //其中用了三个子模式(每个圆括号中内容为一个子模式),第一个是链接开始标签,第二个是链接文本,第三个是</a>然后第二个 阅读全文
posted @ 2014-11-19 20:42 日出的幻景
摘要:PHP中注释:#,//,/* */ 一、修改Apache配置 DocumentRoot "G:\PHP" //修改完需要重启Apache //以下二选一 1、调用Apache 公共配置vhosts.conf 路径:Apache\conf\httpd.conf Include conf/vhosts. 阅读全文
posted @ 2014-11-18 21:03 日出的幻景

Top