-
php中处理各种应用的乱码问题
[PHP教程] 2022-08-24 15:34:40 93人阅读
php中解决各种应用的乱码问题 1) 使用标签设置页面编码 这个标签的作用是声明客户端的浏览器用什么字符集编码显示该页面,xxx 可以为 GB2312、GBK、UTF-8(和MySQL不同,MySQL是UTF8)等等,因此,大部分页面可以采用这种...[详细]
-
设置php.ini 脚本超时方法介绍
[PHP教程] 2022-08-24 15:33:56 111人阅读
设置php.ini 脚本超时方法有二种: 方法一:利用php页面中加 set_time_limit(),如在php文档开始处加上set_time_limit(100),代表为100秒超时。 方法二:在php.ini里面设置 max_execution_time = 1800; 当前上面方法可以...[详细]
-
php define常量定义与变量差别
[PHP教程] 2022-08-02 16:59:54 51人阅读
常量在使用前必须要定义,否则程序执行会出错。在php中使用define()函数来定义常量。 1、语法格式:define(常量名称,常量的值); 例如:define(php360,完美的php); 下面还是来一个范例吧: define()函数定义一个常量,...[详细]
-
PHP中文URL编解码详细介绍
[PHP教程] 2022-08-02 16:59:32 186人阅读
中文url编解码详细说明:在php中urlencode和rawurlencode是对中文进行编码的。 string urlencode ( string str) 返回字符串,此字符串中除了 -_. 之外的所有非字母数字字符都将被替换成百分号(%)后跟两位十六进制...[详细]
-
相关PHP生成静态页面详细讲解
[PHP教程] 2022-08-02 16:58:57 57人阅读
详细讲解一下关于PHP生成静态页面的步骤:为了研究这静态的生成,我花了不少的时间,把我的经验给大家转述一下: 下面是我封装的create html 类: ?php class makehtml { //+---------------------------- //+ 创建H...[详细]
-
php处理数据库乱码问题
[PHP教程] 2022-08-02 16:58:23 130人阅读
数据库是用UTF-8的话,你那个文本是使用什么编码呀? 用mb_convert_encoding或iconv来转换一下编码,两个编码要一致才不会出现乱码的。还有就是数据库连接方面,如果你有加了set names应该是全部的连接都要那样去加,...[详细]
-
KindEditor编辑器调用方法说明
[PHP教程] 2022-08-02 16:57:46 137人阅读
KindEditor编辑器调用方法,这个编辑器可使用到任何语言中,他是一个纯js的编辑器,但它默认的编辑是utf-8如果是gb2312编辑的朋友就是KindEditor.js打开,重保存为gb2312就可以使用在gb2312文档中了,否则就是出现乱码. ...[详细]
-
PHP中文乱码问题及解决方法介绍
[PHP教程] 2022-08-02 16:56:49 115人阅读
html head title/title /head body ?php $mysql_server_name=localhost; $mysql_username=root; $mysql_password=000000; $mysql_database=lib; $conn=mysql_connect($mysql_server_name,$mysql_username,$mysql_pas...[详细]
-
PHP网站开发中有关包含路径问题的解决方案
[PHP教程] 2022-08-02 16:55:10 91人阅读
于PERL与PHP中的包含路径一直是一个比较难解的问题,主要是与操作系统和WEB服务器有关,不可能非常智能化的解决这个路径问题。 相对于PERL,PHP的路径好得多,解决起来也轻易得多,因为PHP的相对路径在PHP程序中的任...[详细]
-
PHP空白页面常见缘由及解决方法
[PHP教程] 2022-08-02 16:54:28 91人阅读
编写PHP,难免会出现错误。其实出现错误也不难解决,最难解决的是出现空白页面。大家想想看,若编写PHP出现错误,可以根据错误的提示来改正,倘若PHP什么也不给你显示,那岂不是让编写者困挠不已? 下面,我就把我在...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]