-
怎样在Mac上通过docker配置PHP开发环境
[PHP教程] 2022-06-23 13:37:58 97人阅读
这篇文章介绍的内容是关于Mac上通过docker配置PHP开发环境,有着一定的参考价值,现在分享给大家,有需要的朋友可以参考一下。 使用docker-compose配置开发环境 一般一个基本的PHP开发环境包括PHP、PHP-FPM、WEB服务...[详细]
-
织梦dedecms浏览次数初始默认值如何设置更改
[PHP教程] 2022-06-23 13:36:27 146人阅读
本文讲述如何修改dedecms添加文章的时候,默认浏览次数的范围。 浏览次数的设置,是直接通过模板html文件 /dede/article_add.htm设置的。 打开/dede/article_add.htm 查找 mt_rand(50, 200) 这个函数代表50-200之间...[详细]
-
织梦CMS网站备份DEDECMS网站数据教程步骤
[PHP教程] 2022-06-23 13:36:01 182人阅读
做站长要养成网站定期备份的好习惯,在网站出现什么问题的时候可以还原数据,就不会造成太大的损失了。 下面来介绍怎么备份织梦网站数据的教程。 一、备份数据库数据 进入DedeCms后台 - 系统 - 数据库备份/还原 备份...[详细]
-
提高织梦DedeCMS文章内容加载速度的小技巧
[PHP教程] 2022-06-23 13:35:39 62人阅读
织梦默认的文章内容页模板里面我们可以看到很多js,这些js加载会影响文章的现实速度,所以我们需要给它优化一下。 我们可以把这些JS里面的内容提取出来,然后放在一个js文件里面,以后只要下载一个js文件就可以了,...[详细]
-
DEDEcms织梦cms网站SEO优化教程详解
[PHP教程] 2022-06-23 13:35:13 56人阅读
DEDEcms是国内一套开源的cms程序,现在用dedecms建站的人越来越多了,所以本人觉得很有必要出品一套比较系统化的 DEDEcms优化教程来帮助大家了解和学习如何优化用DEDEcms搭建的产品。 各步骤详解 第一步:毋庸置疑,...[详细]
-
dedecms织梦系统调用文章简介fielddescription
[PHP教程] 2022-06-23 13:34:29 94人阅读
在用dedecms织梦系统时,用[field:description /]标签调取文章简介时,]如何限制字数? [field:description /]标签限制字数有下面3种方法: 第一种方法:(推荐,可加省略号) [field:description function=cn_substr(...[详细]
-
dedecms后台提示404页面解决方案
[PHP教程] 2022-06-23 13:33:59 187人阅读
不知道用DEDECMS的问答系统的朋友们有木有遇到问题管理和答案管理出现404页面的情况,如果你的服务器是linux系统,估计都遇到过的。大家都知道linux系统对大小写是非常敏感的,不想win系统不区分。 好吧废话少说,解...[详细]
-
舍弃 PHP 代价太高
[PHP教程] 2022-06-23 13:33:28 68人阅读
前言:我初次尝试编程使用的语言是php,并且在数个使用php作为主要开发语言的公司工作过。但是,我并不会对其他语言视而不见,并且现如今php已经不是我主要的开发语言了。 我认为我是一个可以因为不需要过度担心语言...[详细]
-
PHP的PDO常用类库例子分析
[PHP教程] 2022-06-23 13:32:54 186人阅读
本文实例讲述了PHP的PDO常用类库。分享给大家供大家参考,具体如下: 1、Db.class.php 连接数据库 ?php // 连接数据库 class Db { static public function getDB() { try { $pdo = new PDO(DB_DSN, DB_USER, DB_PWD)...[详细]
-
PHP实现简易实用的分页类代码
[PHP教程] 2022-06-23 13:32:22 79人阅读
本文实例讲述了PHP实现简单实用的分页类。分享给大家供大家参考,具体如下: ?php class Page { private $total; //总记录 private $pagesize; //每页显示多少条 private $limit; //limit private $page; //当前页码...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]