平常的小代码

git bash进入你的项目目录,输入: git config --global credential.helper store

宝塔 链接后 网站 打不开 先看看 阿里云是否 80 443 端口

ftp连不上看看 21端口 39000/40000端口

编辑器保存到数据库的是html代码,那么如何输出到前台页面呢?thinkphp的机制使得直接输出html到前端显示的是代码,而不是html的效果。

方法如下

{$data|html_entity_decode}

宝塔伪静态里

 location ~ /(application|config|extend|public|route|runtime|thinkphp|vendor)/ {
        deny all;
        return 403;
    }

配置文件里

 #include enable-php-71.conf; 

 location ~ ^/(index\.php|static/admin/ueditor/php/controller\.php)$
    {
        try_files $uri =404;
        fastcgi_pass  unix:/tmp/php-cgi-70.sock;
        fastcgi_index index.php;
        include fastcgi.conf;
       include pathinfo.conf;
    }

location ~ ^/(index\.php|static/admin/ueditor/php/controller\.php)$
    {
        try_files $uri =404;
        fastcgi_pass  unix:/tmp/php-cgi-71.sock;
        fastcgi_index index.php;
        include fastcgi.conf;
       include pathinfo.conf;
    }

ipconfig /flushdns 清理dns缓存

斜杠替换反斜杠

str_replace("\\",'/',$file)

路由跟踪命令(tracert)

phpstorm 匹配 <div><p style=(.*)</p></div>

<p>(.*)你有帮助。(.*?)<h2>(如果有多个匹配 找到第一个停止)

SELECT * FROM `cms_articles` WHERE NOT EXISTS (SELECT 1 FROM `cms_college_score_articles` WHERE `cms_articles`.`id`= `cms_college_score_articles`.`article_id`)

$list->each(function($item){
    $job =  Db::name('job')->where('id',$item['jid'])->find();
    $item['jobtitle'] = $job['title'];
    return $item;
});
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值