-
揭秘PHP动态网站开发中常用的8个小技巧
[PHP教程] 2022-07-07 13:09:22 119人阅读
本文总结了PHP日常开发中常用的8个小技巧。 PHP批最取得checkbox的值 1、命名 input type=checkbox name=checkbox[] value=dwmyrow[banzhu] / 2、使用 当计划当作sql指令的一部分时:如果参与控制的字段是数值型的,...[详细]
-
解析PHP 开发中的中文编码问题
[PHP教程] 2022-07-07 13:08:54 169人阅读
PHP程序设计中中文编码问题曾经困扰很多人,导致这个问题的原因其实很简单,每个国家(或区域)都规定了计算机信息交换用的字符编码集,如美国的扩展 ASCII 码, 中国的 GB2312-80,日本的 JIS 等。作为该国家/区域内信...[详细]
-
详解PHP中缓存技术的应用
[PHP教程] 2022-07-07 13:08:14 192人阅读
PHP,一门最近几年兴起的web设计脚本语言,由于它的强大和可伸缩性,近几年来得到长足的发展,php相比传统的asp网站,在速度上有绝对的优势,想mssql转6万条数据php如需要40秒,asp不下2分钟.但是,由于网站的数据越来越多,...[详细]
-
常用的数值判断函数
[PHP教程] 2022-07-07 13:07:55 52人阅读
常用的对象类型判断 HTML HEAD TITLE常用的数值判断函数/TITLE /HEAD BODY ? //判断数组 colors = array(red, blue, green); if(is_array(colors)) { print(colors is an array.br); } //双精度数判断 Temperature =...[详细]
-
如何实现文件上传的程序源码
[PHP教程] 2022-07-07 13:07:36 100人阅读
如何实现文件上传 ? HTML HEAD TITLE文件上传界面/TITLE /HEAD BODYTABLECENTER ? if(UploadAction){ UploadAction=0; TimeLimit=60; /*设置超时限制时间默认时间为 30s,设置为0时为不限时 */ set_time_limit(TimeL...[详细]
-
详解PHP的Jmai组件及发送邮件实例
[PHP教程] 2022-07-07 13:07:07 52人阅读
% On error resume next Dim JMail, contentId Set JMail = Server.CreateObject(JMail.Message) JMail.Charset = gb2312 邮件字符集,默认为US-ASCII JMail.ISOEncodeHeaders = False 是否进行ISO编码,默认为True ...[详细]
-
解读PHP中对文件和目录的操作方法
[PHP教程] 2022-07-07 13:05:59 61人阅读
解读PHP中对文件和目录的操作方法 一:引论 在任何计算机设备中,文件是都是必须的对象,而在web编程中,文件的操作一直是web程序员的头疼的地方,而,文件的操作在cms系统中这是必须的,非常有用的,我们经常遇到生成文件目...[详细]
-
PHP函数PHP的通用检测函数总结
[PHP教程] 2022-07-07 13:05:19 184人阅读
// ※CheckMoney(C_Money) 检查数据是否是99999.99格式 // ※CheckEmailAddr(C_mailaddr) 判断是否为有效邮件地址 // ※CheckWebAddr(C_weburl) 判断是否为有效网址 // ※CheckEmpty(C_char) 判断字符串是否为空 // ...[详细]
-
浅析动态网页技术PHP中错误处理的一些方法
[PHP教程] 2022-07-07 13:03:57 187人阅读
已经玩php一段时间了,基本是from 0开始的,经常出现的问题也很多,慢慢的可以熟练的查询文档了,而且,经验也不是很多。 先look here。: error_reporting(1048);//1,2,4,7,...,1048 ob_start(); session_star...[详细]
-
php 截取中文
[PHP教程] 2022-07-07 13:03:20 50人阅读
?php ?php //截取中文字符串 function mysubstr(str, start, len) { tmpstr = ; strlen = start + len; for(i = 0; i strlen; i++) { if(ord(substr(str, i, 1)) 0xa0) { tmpstr .= substr(str, i, 2); i++; } else ...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]