自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(26)
  • 收藏
  • 关注

原创 deepin15.11+lnmp+网站访问

一,准备:1, linux:deepin15.11 ( linux内核:deian 9 )2, 安装软件:lnmp ( lnmp.org lnmp1.6 )二,安装lnmp 推荐 https://lnmp.org/1,安装lnmproot@localhost:~$ wget http://soft.vpser.net/lnmp/lnmp1.6.tar.gz -cO lnmp1...

2019-07-28 16:18:19 674

转载 php发送email(swiftmailer)

<?php/** * swiftmailer 发送邮件 * DB:https://github.com/ThingEngineer/PHP-MySQLi-Database-Class * * 1,链接mysql pdo * $this->pdo = new PDO("mysql:host=localhost;dbname=test_db", "root", "");...

2019-07-21 16:27:23 929

转载 purifier用来过滤危险的标签xss

htmlpurifier下载地址: http://htmlpurifier.org/purifier下载地址:https://github.com/mewebstudio/Purifier laravel<?php/** * 富文本编辑器 * purifier 用来过滤危险的标签 * VERSION: '4.11.0' * url: http://...

2019-07-21 14:14:45 528

原创 php之pdo知识梳理

一,防sql注入 二,pdo 错误 errorCode 与errorInfo 三,pdo 视图一,防sql注入1,bindParam(1, $username, PDO::PARAM_STR);try { $pdo = new PDO("mysql:host=localhost;dbname=dm", "root", "...

2019-07-18 22:49:02 157

转载 php使用file_get_contents获取远程js文件

public function getBrands(){ if (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest' && $_SERVER['REQUES...

2019-07-16 12:33:02 965

转载 php学习片段之pdo

Apache+Nginx的URL地址重写参考:https://www.cnblogs.com/phpdragon/p/7210472.html1, ApacheURL地址重写.htaccess 文件RewriteEngine on#如果不是文件、不是目录RewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQ...

2019-07-14 14:58:41 114

转载 PHP生成二维码

/** * QR Code 生成二维码 * http://phpqrcode.sourceforge.net/ *//** * L级:约可纠错7%的数据码字 * M级:约可纠错15%的数据码字 * Q级:约可纠错25%的数据码字 * H级:约可纠错30%的数据码字 */// 下载 http://phpqrcode.sourceforge.net/include "ph...

2019-07-14 14:56:12 147

转载 linux常见运维命令

PU、内存、进程、磁盘、网络,这五大运维系统的运行状态,需要掌握的运维命令有ls、ps、free、top、uptime、ifconfig、su/sudo、dmesg、iostat、vmstat、sar、htop、iotop、smem等命令。---------------------------------------------------------------------------...

2019-07-11 16:29:26 196

转载 yum安装PipelineDB11

说明:这里是我对与安装PipelineDB11的补充(也许没有什么用)正经安装参考: PipelineDB安装(CentOS7)https://blog.csdn.net/gaokcl/article/details/95345324一, yum安装PipelineDB11参考PipelineDB官方文档: http://docs.pipelinedb.com/insta...

2019-07-10 16:32:44 236

原创 PipelineDB安装(CentOS 7)

Postgresql 11:PipelineDB安装Postgresql 10 安装参考:https://blog.csdn.net/gaokcl/article/details/95041127一,安装:1, postpredb : pipelinesql 对应的库 :https://github.com/pipelinedb/pipelinedb/releases2...

2019-07-10 16:12:41 681

原创 deepin15.10.1安装与介绍

Deepin (Linux系统) :1, 介绍:LinuxDeepin[Linux操作系统的一种发行版。Linux有很多种发行版。主要有两个系列。 Red Hat 系列:Red Hat、CentOS、Fedora、 红旗Linux(国产)Debian系列:Debian、Ubuntu、Linux Mint、 Linux Deepin(国产)目前deepin官网的版本是 ...

2019-07-10 11:10:46 1268

转载 Web项目文件操作(PHP)

1,文件操作<?phpfunction readDir($path = 'e:/data/'){ $arr = array(); $handle = opendir($path); while (($item = readdir($handle)) !== false) { // . 和 .. 特殊目录 if ($it...

2019-07-08 23:00:38 451

转载 CentOS7安装配置简单使用postgresql10

说明: 1, Linux版本:CentOS7 2, postgresql的版本:10(最新是11),主要方便入手,不用最新的 3, pipelineDB是基于postgres的stream数据库。完全兼容pg的东西注意:下一篇写pipelineDB安装使用准备工作: $ rpm -qa | grep postgres # 检查Postgr...

2019-07-07 23:36:39 4156 2

转载 PHPMailer

PHPMailer PHP自带的mail扩展1, 配置的PHP代码如下:<?phprequire_once('../phpMail/class.phpmailer.php');require_once("../phpMail/class.smtp.php");header("Content-type:text/html;charset=utf-8");$mail = n...

2019-07-06 23:19:08 296

原创 Windows10安装配置yaf

一,Windows10安装配置yaf​ Yaf官方文档:http://www.laruence.com/manual/index.html第一步:安装PHP扩展配置Yaf下载Yaf扩展:http://pecl.php.net/package/yaf None-Thread Safe 就是非线程安全,在执行时不进行线程(thread)安全检查; Thread...

2019-07-06 23:15:26 925

原创 Apache Nginx 防止盗链

1, Apache Nginx 防止盗链2, http协议相关信息Apache 防止盗链参考 :https://blog.csdn.net/cnbird2008/article/details/50636861,php.iniLoadModule rewrite_modules/mod_rewrite.so 2, .htaccess1, no_download_pic.p...

2019-07-06 19:33:36 372

转载 Restful的实例

Apache路由重写: .htaccessRewriteEngine onRewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^(.*)$ index.php/$1 [L]db.php<?php$pdo = new PDO('mysql:host=localho...

2019-07-06 17:54:48 761

转载 HTTP之实现basic认证

header("WWW-Authenticate:Basic realm='Private'");// 实现basic认证header("WWW-Authenticate:Basic realm='Private'");header('HTTP/1.0 401 Unauthorized');print "You are unauthorized to enter this area....

2019-07-06 17:45:39 1202

转载 RESTful API 软件架构

HTTP协议简单介绍: https://blog.csdn.net/gaokcl/article/details/94011523一,RESTful是什么:本质: 核心:一种软件架构风格 面向资源解决问题:1,降低开发的复杂度、2,提高相同的可伸缩性...

2019-07-06 16:56:33 260

原创 PHP【mysqli、pdo】 连接mysql数据库

0,数据库 test_db 的表:-- ------------------------------ Table structure for articles-- ----------------------------DROP TABLE IF EXISTS `articles`;CREATE TABLE `articles` ( `id` int(25) NOT NU...

2019-07-06 14:19:50 357

原创 生成百度SEO的sitemap的xml的url问题

1,生成百度SEO的sitemap2,xml的url问题 处理3,实例代码<?php/** * 生成xml的url问题,( ? & 与 空格处理) */$url_prefix = "http://www.baidu.com/xxx/?brand=";// 1, urlencode($brand) 针对 [ 空格 ] 处理$brand = '10 IQ'...

2019-07-05 12:38:26 1161

转载 PHP删除指定文件夹下的所有文件与文件夹

php 判断文件或目录是否存在( php自带的函数 )1,file_exists:文件是否存在 $file = "check.txt"; if(file_exists($file)) { echo "当前目录中,文件".$file."存在"; }else{ echo "当前目录中,文件".$file."不存在"; }2,is_dir:目录是否存在...

2019-07-02 13:36:05 1476

转载 简单使用MySQL

1,分表后使用 Type = MERGE UNION2, 简单使用MySQL

2019-07-01 16:29:52 216

原创 Windows10下使用docker

windows10下:在有docker的目录下 使用 shift + 鼠标右键docker exec -it pop_php54 /bin/bash-- 下面按照linux使用cd 项目目录composer install

2019-07-01 16:27:38 406

原创 Rbac建表语句(mysql)

CREATE TABLE `users` (`id` int(11) unsigned NOT NULL AUTO_INCREMENT,`name` varchar(20) NOT NULL DEFAULT '' COMMENT '姓名',`email` varchar(30) NOT NULL DEFAULT '' COMMENT '邮箱',`is_admin` tinyint(1)...

2019-07-01 15:56:43 736

原创 PHP-MySQL操作封装

参考:https://github.com/ThingEngineer/PHP-MySQLi-Database-Classphp + mysql操作封装 ,方便 自我封装php框架使用,或者小型框架(yaf等)目录:1, mysql.class.php<?php/** * /PHPMySQLi/MysqliDb.php : https://github.co...

2019-07-01 14:44:22 462

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除