<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Generalsphper的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/Generalsphper</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; Generalsphper]]></copyright><item><title><![CDATA[从excel导入数据至PostgreSQL数据库]]></title><link>https://blog.csdn.net/Generalsphper/article/details/103631046</link><guid>https://blog.csdn.net/Generalsphper/article/details/103631046</guid><author>Generalsphper</author><pubDate>Fri, 20 Dec 2019 13:38:02 +0800</pubDate><description><![CDATA[从excel导入数据至PostgreSQL数据库
1.编辑excel表数据  数据库表字段为空的可在excel表中清除
比如需要导入数据的这张users表：
前三个字段是需要在excel中导入的
这样excel表可以这样编辑：

2.编辑好之后另存为.csv格式

编码可以用记事本打开 然后另存为UTF-8
3.右键需要导入的表  选择导入  按照提示操作即可 里面有一步是选择数据源对照表字段 如...]]></description><category></category></item><item><title><![CDATA[使用Sublime Text 3的HTML-CSS-JS Prettify插件格式化代码]]></title><link>https://blog.csdn.net/Generalsphper/article/details/83687425</link><guid>https://blog.csdn.net/Generalsphper/article/details/83687425</guid><author>Generalsphper</author><pubDate>Sat, 03 Nov 2018 15:20:28 +0800</pubDate><description><![CDATA[第一步 安装 HTML-CSS-JS Prettify 插件

1、首先，你要有Sublime Text 3编辑器；
2、你本地要配置NodeJS环境（官网直接下载安装就可以）；
3、你的Sublime Text 3编辑器要安装HTML-CSS-JS Prettify插件（安装方法如下）。

 

先说插件安装：

a)在Sublime Text 3中，按下Ctrl+Shift+P调出命令面板;
...]]></description><category></category></item><item><title><![CDATA[微信模板消息批量推送]]></title><link>https://blog.csdn.net/Generalsphper/article/details/79181768</link><guid>https://blog.csdn.net/Generalsphper/article/details/79181768</guid><author>Generalsphper</author><pubDate>Sat, 27 Jan 2018 17:17:18 +0800</pubDate><description><![CDATA[需要给关注用户发送模板消息，由于公众号关注用户比较多，所以采用普通的curl等方式太慢。由于模板消息发送不需要等待微信的结果，所以利用php的fsockopen()函数可以达到快速发送的效果。代码如下：

        $data = array(
            'touser' => '推送人（粉丝）的openid',
            'template_id' => '微信]]></description><category></category></item><item><title><![CDATA[win环境下用计划任务定时执行一个php程序文件]]></title><link>https://blog.csdn.net/Generalsphper/article/details/78625221</link><guid>https://blog.csdn.net/Generalsphper/article/details/78625221</guid><author>Generalsphper</author><pubDate>Fri, 24 Nov 2017 15:35:34 +0800</pubDate><description><![CDATA[win环境下用计划任务定时执行一个php程序文件1.先新建一个php文件，举例：<?php
$msg='成功执行,执行时间：'.date("Y-m-d H:i:s")."\r\n";
file_put_contents("log.log",$msg,FILE_APPEND);
?>2.新建一个文本文档jishi.txt,写上下面内容，再将文件后缀.txt改为.bat。（用于下图步骤）//我用的是ph]]></description><category></category></item><item><title><![CDATA[html页面文字左右两端对齐]]></title><link>https://blog.csdn.net/Generalsphper/article/details/56673498</link><guid>https://blog.csdn.net/Generalsphper/article/details/56673498</guid><author>Generalsphper</author><pubDate>Thu, 23 Feb 2017 15:39:32 +0800</pubDate><description><![CDATA[我遇到问题是：看不到效果，无论是英文还是中文，在IE和chrome下都不起作用。这是在网上找到的解决方法 ：）css样式：div.justify 
{ 
　　text-align: justify; width:200px; font-size:15px; color:red; 
　　border:1px solid blue; height:18px;
}
div.justify > span]]></description><category></category></item><item><title><![CDATA[解决DEDE防止图片撑破页面，文章内容中的图片自适应宽度]]></title><link>https://blog.csdn.net/Generalsphper/article/details/55505088</link><guid>https://blog.csdn.net/Generalsphper/article/details/55505088</guid><author>Generalsphper</author><pubDate>Fri, 17 Feb 2017 10:21:26 +0800</pubDate><description><![CDATA[许多使用过DEDE建网站的朋友，可能都会碰到过这样的情况，当我们在一个网站里发表一篇文章时，如果我们使用的图片，其宽度超过内容区域大小，图片就会将表格撑大，同时使得页面布局变得混乱起来。当然，如果懂CSS，我们可以利用css来定义，让超出的部分隐藏起来。不过，这样做的话，图片的美观性就很差，显示不出来超出的部分。  解决这个问题，还有一些朋友，会利用css，使图片在过大后，自动将图片缩小，不过，值得]]></description><category></category></item><item><title><![CDATA[navicat 连接mysql时报错1045]]></title><link>https://blog.csdn.net/Generalsphper/article/details/54927637</link><guid>https://blog.csdn.net/Generalsphper/article/details/54927637</guid><author>Generalsphper</author><pubDate>Wed, 08 Feb 2017 15:51:32 +0800</pubDate><description><![CDATA[内容均来自网上个人亲测,也许我的问题正是你正在困扰的问题，所以，请试试这个方法吧！]]></description><category></category></item><item><title><![CDATA[php给日期添加一段时间]]></title><link>https://blog.csdn.net/Generalsphper/article/details/54912516</link><guid>https://blog.csdn.net/Generalsphper/article/details/54912516</guid><author>Generalsphper</author><pubDate>Tue, 07 Feb 2017 17:09:20 +0800</pubDate><description><![CDATA[日期加一段时间：date('Y-m-d H:i:s',strtotime("+1 day +1 hour +1 minute");]]></description><category></category></item><item><title><![CDATA[ecshop调用指定栏目下的文章的方法]]></title><link>https://blog.csdn.net/Generalsphper/article/details/54907498</link><guid>https://blog.csdn.net/Generalsphper/article/details/54907498</guid><author>Generalsphper</author><pubDate>Tue, 07 Feb 2017 11:00:27 +0800</pubDate><description><![CDATA[ecshop调用指定栏目下的文章的方法
1.打开 index.php 添加 fun函数一个，需放在php开始符与结束符?>中间。/**
 * 获得指定栏目的文章列表。
 * @param   int      $cat_aid   栏目ID
 * @param   int      $cat_num   条数
 * @return array
 */
function index_get_articl]]></description><category></category></item><item><title><![CDATA[PHP 获取 今日 本月 上月]]></title><link>https://blog.csdn.net/Generalsphper/article/details/54645185</link><guid>https://blog.csdn.net/Generalsphper/article/details/54645185</guid><author>Generalsphper</author><pubDate>Sat, 21 Jan 2017 11:20:04 +0800</pubDate><description><![CDATA[//今日


$today=mktime(0,0,0,date('m'),date('d'),date('Y')); 




//本月月初时间戳
$month_start=mktime(0, 0 , 0,date("m"),1,date("Y"));





//上月月初时间戳、上月月未时间戳
$lastmonth_start=mktime(0,0,0,date]]></description><category></category></item></channel></rss>