• 实现的WordPress代码高亮插件——WP-googlecodeprettify

    WP-googlecodeprettify一个基于 Google Code Prettify 实现的WordPress代码高亮插件,在TinyMCE编辑器中提供了一个插入代码的按钮。在文本编辑器中,加入了pre-js,pre-css,pre-html 3个快捷按钮; GitHub 开源地址:https://github.com/feiwen8772/wp-googlecodeprettify 代码高亮效果:https://www.html.cn/archives/4728 更新信息 2017年08月24日 v3.0 更新: 新增显示文...
    作者:admin | 发布:
    Warning: Use of undefined constant Y年n月d日 - assumed 'Y年n月d日' (this will throw an Error in a future version of PHP) in /www/wwwroot/blog.wmphp.com/wp-content/themes/wmphp/index.php on line 19
    2017年9月10日 | 分类:HTML | 阅读:374次 |
  • tp5 文件上传方法

    thinkphp5 文件上传方法,代码如下: 建立/application/index/controller/Index.php <?php namespace app\index\controller; use think\Controller; use think\Request; class Index extends Controller { public function index() { return $this->fetch(); } public function upload(){ // 获取表单上传文件 例如上传了001.jpg $file = request()->file('image')...
    作者:admin | 发布:
    Warning: Use of undefined constant Y年n月d日 - assumed 'Y年n月d日' (this will throw an Error in a future version of PHP) in /www/wwwroot/blog.wmphp.com/wp-content/themes/wmphp/index.php on line 19
    2017年8月31日 | 分类:Thinkphp | 阅读:1,321次 |
  • TP5助手函数与3.2版本的单字母函数对比

    我们一直用ThinkPHP 3.2 觉得单字母函数非常方便,但在TP5就废除了,名字为助手函数,主要考虑兼容性,不会造成滥用情况。下在是对照表,对于初学者很有必要。 5.0助手函数 助手函数 描述 abort 中断执行并发送HTTP状态码 action 调用控制器类的操作 cache 缓存管理 config 获取和设置配置参数 controller 实例化控制器 cookie Cookie管理 db 实例化数据...
    作者:admin | 发布:
    Warning: Use of undefined constant Y年n月d日 - assumed 'Y年n月d日' (this will throw an Error in a future version of PHP) in /www/wwwroot/blog.wmphp.com/wp-content/themes/wmphp/index.php on line 19
    2017年8月30日 | 分类:Thinkphp | 阅读:1,355次 |
  • php输出echo、print、print_r、printf、sprintf、var_dump的区别比较

    一、echo echo() 实际上不是一个函数,是php语句,因此您无需对其使用括号。不过,如果您希望向 echo() 传递一个以上的参数,那么使用括号会发生解析错误。而且echo是返回void的,并不返回值,所以不能使用它来赋值。 例子: 代码如下: <?php $a = echo("55nav"); // 错误!不能用来赋值 echo "55nav"; // 55nav echo ("55nav"); // 55nav echo ("55nav","com"); //发生...
    作者:admin | 发布:
    Warning: Use of undefined constant Y年n月d日 - assumed 'Y年n月d日' (this will throw an Error in a future version of PHP) in /www/wwwroot/blog.wmphp.com/wp-content/themes/wmphp/index.php on line 19
    2017年8月09日 | 分类:Thinkphp | 阅读:995次 |
  • Vlan的三种访问方式:Access,Trunk和Hybrid

    untag就是普通的ethernet报文,普通PC机的网卡是可以识别这样的报文进行通讯; tag报文结构的变化是在源mac地址和目的mac地址之后,加上了4bytes的vlan信息,也就是vlan tag头;一般来说这样的报文普通PC机的网卡是不能识别的。 以太网端口有三种链路类型:Access,Hybrid和Trunk。 Access类型的端口智能属于1个VLAN,一般用于连接计算机的端口; Trunk类型的端口可以允许多...
    作者:admin | 发布:
    Warning: Use of undefined constant Y年n月d日 - assumed 'Y年n月d日' (this will throw an Error in a future version of PHP) in /www/wwwroot/blog.wmphp.com/wp-content/themes/wmphp/index.php on line 19
    2017年7月24日 | 分类:网络通信 | 阅读:554次 |
  • Dell R710优化开机速度关闭DHCP

    R710服务器,和相关类型的R系统的服务器,开机是相当的慢,方法如下: 1、关闭iDRAC6,开机看提示按Ctrl+E,禁用 2、关闭开机时的DHCP,开机按F2,如图:
    作者:admin | 发布:
    Warning: Use of undefined constant Y年n月d日 - assumed 'Y年n月d日' (this will throw an Error in a future version of PHP) in /www/wwwroot/blog.wmphp.com/wp-content/themes/wmphp/index.php on line 19
    2017年6月11日 | 分类:服务器 | 阅读:2,515次 |
  • PigCms小猪多用户微信营销系统加盟版20170217同步完整包源码

    PigCms多用户微信营销系统系统内置100多项应用,涵盖近30个行业的垂直领域应用!   安装说明: 1、导入数据库 2、修改配置文件conf目录下db.php文件 3、后台地址pi.php 账号admin 密码admin888 注:如果是Linux安装是区分大小写的,需要将pigcms改成PigCms,是目录大小写问题。   演示地址:http://weixin.wmphp.com   源码下载地址:http://pan.baidu.com...
    作者:admin | 发布:
    Warning: Use of undefined constant Y年n月d日 - assumed 'Y年n月d日' (this will throw an Error in a future version of PHP) in /www/wwwroot/blog.wmphp.com/wp-content/themes/wmphp/index.php on line 19
    2017年6月05日 | 分类:源码 | 阅读:2,272次 |
  • Putty多行复制不直接粘贴

    putty 多行复制不粘贴,方法:按右键不动即可。   PSFTP使用方法: psftp是SSH 22端口的连接 1. 启动PSFTP 在Windows命令提示符中输入 set PATH=C:/PSFTP.exe所在路径;%PATH% 之后,用psftp登录服务器   psftp> 这时用open命令登录服务器 open username@server.example.com 2. PSFTP 2.1 文件名中有空格时使用双引号 如”space name.txt” 2.2 使用通配符 * 代...
    作者:admin | 发布:
    Warning: Use of undefined constant Y年n月d日 - assumed 'Y年n月d日' (this will throw an Error in a future version of PHP) in /www/wwwroot/blog.wmphp.com/wp-content/themes/wmphp/index.php on line 19
    2017年5月30日 | 分类:技术文章 | 阅读:1,475次 |
  • Centos6和7 ip和网关不在同一网段

    这两天安装了Centos6.9,配置服务器的IP是192.168.147.9,子网掩码是255.255.255.0,而网关是192.168.20.1,两个不在同一网段,配置后不能正常上网,需要做路由(route命令) 解决方法: 使用route命令 1、将网关作为主机路由添加到表; route add -host 192.168.20.1 netmask 0.0.0.0 dev em1 2、正常方式将网关作为默认路由添加到表里 route add default gw 192.168.20.1 ...
    作者:admin | 发布:
    Warning: Use of undefined constant Y年n月d日 - assumed 'Y年n月d日' (this will throw an Error in a future version of PHP) in /www/wwwroot/blog.wmphp.com/wp-content/themes/wmphp/index.php on line 19
    2017年5月26日 | 分类:Linux | 阅读:1,972次 |
  • 熊猫烧香病毒样本下载

    勒索病毒于5月12日肆虐,让我想起十年前2007年的熊猫烧香病毒,随便把样本发上来让大家分析一下,总之提高网络安全意识是非常重要的。 谨慎使用,仅限用于实验环境; 严禁用于非法用途,否则后果自负; 友情提示: 下载前先关杀毒软件、360等; 然后在虚拟机中做实验; 真机一定要小心啊,不然中毒了会很麻烦;   熊猫烧香病毒样本 下载:由于网上不让放,可以Q留言...
    作者:admin | 发布:
    Warning: Use of undefined constant Y年n月d日 - assumed 'Y年n月d日' (this will throw an Error in a future version of PHP) in /www/wwwroot/blog.wmphp.com/wp-content/themes/wmphp/index.php on line 19
    2017年5月15日 | 分类:Windows | 阅读:7,936次 |
  • 勒索病毒Wanacry2.0样本下载

    出于研究的目的,不是扩散传播病毒,研究者可以下载测试,注意不要在本机测试,可以在虚拟桌面上测试     勒索病样本下载:由于网上不让放,可以Q留言找我。 解压密码:123456   勒索蠕虫病毒文件恢复工具V2: http://dl.360safe.com/recovery/RansomRecovery.exe   只要没关机,被锁文件可以100%解密, wanakiwi下载地址:https://github.com/gent...
    作者:admin | 发布:
    Warning: Use of undefined constant Y年n月d日 - assumed 'Y年n月d日' (this will throw an Error in a future version of PHP) in /www/wwwroot/blog.wmphp.com/wp-content/themes/wmphp/index.php on line 19
    2017年5月15日 | 分类:病毒 | 阅读:5,166次 |