-
php Hex RGB颜色值互换的用法
[PHP教程] 2022-07-12 11:46:29 170人阅读
复制代码 代码如下:www.CuoXIn.com ?php echo implode ( ,, HexToRGB ( #F7F7DA ) ) . br/; echo RGBToHex ( rgb(247,247,218) )? ?php function HexToRGB($colour) { if ($colour [0] == #) { $colour = substr ( $...[详细]
-
PHP中 登录记住密码实现思路
[PHP教程] 2022-07-12 11:30:59 151人阅读
form页面 复制代码 代码如下:www.CuoXIn.com form action=login.php method=post 用户名input type=text name=usernamebr 密码input type=text name=passwordbr 记住密码input type=checkbox name=jizhu value=1br i...[详细]
-
php启动时候提示PHP startup的处理方法
[PHP教程] 2022-07-12 11:30:38 122人阅读
最近在学习php,配置好php环境后,每次开机都有警告提示说 PHP startup。如下图: 显然这是个小问题,是关于php配置的。 解决这个问题很简单只需要在php.ini 文件中修改 extension_dir配置就行。 把 复制代码 代码如...[详细]
-
深入phpMyAdmin的安装与配置的详细步骤
[PHP教程] 2022-07-12 11:29:09 54人阅读
phpmyadmin就是一种mysql的管理工具,安装该工具后,即可以通过web形式直接管理mysql数据,而不需要通过执行系统命令来管理,非常适合对数据库操作命令不熟悉的数据库管理者,下面我就说下怎么安装该工具: 1.先到网...[详细]
-
使用php实现下载生成某链接快捷方式的解决方法
[PHP教程] 2022-07-12 11:28:51 139人阅读
复制代码 代码如下:www.CuoXIn.com ?php $Shortcut = [InternetShortcut] URL=http://www.your_url.com/ IconFile=http://www.your_icon.com/ IconIndex=1 IDList= [{000214A0-0000-0000-C000-000000000046}] Prop3=...[详细]
-
php中使用函数代替require操作
[PHP教程] 2022-07-12 11:28:34 169人阅读
为了减少重复代码,常常需要包含 heade 和 footer,我们最长使用的操作就是,require 或者 reqire_once等代码,但是我们可以用另一种方式来实现这种包含,写一个函数,比如 printHeader ,如下所示,看起来似乎一行...[详细]
-
基于PHP静态类的原罪详解
[PHP教程] 2022-07-12 11:28:06 58人阅读
黑格尔有句名言:存在即合理。以此为论据的话,静态类的使用必然有其合理性。不过物极必反,一旦代码过于依赖静态类,其劣化的结局则不可避免。这就好比罂粟作为一种草本植物,有其在药理上的价值,但如果肆无忌惮的...[详细]
-
在PHP中设置使用删除Cookie的解决方法
[PHP教程] 2022-07-12 11:27:41 97人阅读
在PHP中设置、使用、删除Cookie的解决方法 1、设置Cookie PHP用SetCookie函数来设置Cookie。必须注意的一点是:Cookie是HTTP协议头的一部分,用于浏览器和服务器之间传递信息,所以必须在任何属于HTML文件本身的内容...[详细]
-
LotusPhp笔记之Cookie组件的使用详解
[PHP教程] 2022-07-12 11:27:06 92人阅读
LotusPhp 的 Cookie 组件也是非常简单易用的。 首先,要新建一个配置文件,文件名为 cookie.conf.php,至于放在哪里等到讲到 Config 组件的时候会有一个阐述,今天先说怎么用,需要哪些步骤。 Cookie 配置文件的主要...[详细]
-
LotusPhp笔记之基于ObjectUtil组件的使用分析
[PHP教程] 2022-07-12 11:26:47 97人阅读
ObjectUtil组件其实就是单例模式的最好范例,声明调用各个组件的时候,用ObjectUtil调用,可以有效的防止调用过多的类而导致错误或者资源浪费。 比如调用Db组件,这样声明就可以了 $db = LtObjectUtil::singleton(Lt...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]