上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页
摘要: php 过滤文章的html标签方法 阅读全文
posted @ 2017-05-18 13:05 贵隆 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 按字符宽度获取 mb_strimwidth ( string $str , int $start , int $width [, string $trimmarker [, string $encoding ]] ) 参数说明: $str //指定字符串 $start //指定从何处开始截取 $wi 阅读全文
posted @ 2017-04-01 10:24 贵隆 阅读(198) 评论(0) 推荐(0) 编辑
摘要: mystring=replace(mystring,chr(39),"&acute;") '替换单引号 mystring=replace(mystring,chr(34),"&quot;") '替换双引号 mystring=replace(mystring,"<","&lt;") '替换< myst 阅读全文
posted @ 2016-12-19 12:36 贵隆 阅读(557) 评论(0) 推荐(0) 编辑
摘要: PHP生成word原理 具体实现: 利用windows下面的 com组件 具体实现: 利用windows下面的 com组件 利用windows下面的 com组件 原理:com作为PHP的一个扩展类,安装过office的服务器会自动调用word.application的com,可以自动生成文档,PHP 阅读全文
posted @ 2016-12-12 15:00 贵隆 阅读(590) 评论(0) 推荐(0) 编辑
摘要: 作为PHP入门开发者,常常有这种述求:自己的网站中需要添加一个使用自己的域名作为发件人邮件地址的自动发送邮件的方法,用于诸如给用户发送验证码、通知信息等。比如:我的某个用户注册模块,需要使用register@jjonline.cn作为邮件发送人给注册用户发送一封包含账号激活链接的html格式的邮件, 阅读全文
posted @ 2016-12-12 10:48 贵隆 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 阅读wordpress官方文档WP_Rewrite类:https://codex.wordpress.org/Class_Reference/WP_Rewrite 案例: The Jerome's Keywords plugin does this to enable URLs like http: 阅读全文
posted @ 2016-11-30 22:25 贵隆 阅读(311) 评论(0) 推荐(0) 编辑
摘要: //获取当前页面的id $page_id = $wp_query->get_queried_object_id(); //获取当前页面的别名 $slug = get_page( $page_id ); echo $slug->post_name; 阅读全文
posted @ 2016-11-26 21:12 贵隆 阅读(423) 评论(0) 推荐(0) 编辑
摘要: wordpress顶级菜单函数add_menu_page() add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $function, $icon_url, $position );//page_title页面title 阅读全文
posted @ 2016-11-26 10:49 贵隆 阅读(760) 评论(0) 推荐(0) 编辑
摘要: 插件的manifest.json文件: { "manifest_version": 2, "name": "保存网页为PDF", "version": "1.1.7.80", "description": "保存网页为PDF【作者:涂剑凯,邮箱:bdstjk@qq.com】", "icons":{" 阅读全文
posted @ 2016-11-19 21:38 贵隆 阅读(7508) 评论(0) 推荐(0) 编辑
摘要: 获取单选框的值有三种方式:1、$('input:radio:checked').val();2、$("input[type='radio']:checked").val();3、$("input[name='rd']:checked").val(); 阅读全文
posted @ 2016-10-29 11:24 贵隆 阅读(183) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 12 下一页