-
PHP实例 用PHP简单实现多条件查询
[PHP教程] 2022-03-07 15:48:49 155人阅读
在我们的网站设计过程中,经常会用到多条件查询,本文的源码是一个二手房屋查询的例子。在本例中,我们要实现能够通过地理位置,物业类型,房屋价格,房屋面积及信息发布日期等多个条件查询到客户所需的资料。 查询...[详细]
-
PHP实例 一个非常全面获取图象信息的PHP函数
[PHP教程] 2022-03-07 15:48:31 198人阅读
一个全面获取图象信息的函数getimageinfo(),功能非常不错啊! 以下为引用的内容: ?php function getimageinfo($img) { //$img为图象文件绝对路径 $img_info = getimagesize($img); switch ($img_info[2]) { case 1...[详细]
-
PHP实例 用PHP编写的网上调查投票系统
[PHP教程] 2022-03-07 15:48:14 138人阅读
这是一个简单的投票程序,对于刚学PHP和朋友来说是一个很不错的入门程序。在这里给大家介绍一下,希望能对朋友们有所帮助。 该系统是由以下四个文件组成的:有HTML调查表单的survey.htm,实现调查功能的survey.php,记...[详细]
-
PHP技巧 通过COM使用ADODB
[PHP教程] 2022-03-07 15:47:36 157人阅读
要实现下列功能,请确保 php.ini 中的 com.allow_dcom 选项已设为 true。 一、准备工作 新建一个ACCESS数据库,并命名为db.mdb,然后在这个数据库中新建一个表 comtest,包含 id 和 title 两个字段,最后随便插入一...[详细]
-
PHP技巧 PHP脚本编程中的文件系统函数库
[PHP教程] 2022-03-07 15:46:33 117人阅读
basename: 返回不含路径的文件字符串。 chgrp: 改变文件所属的群组。 chmod: 改变文件的属性。 chown: 改变文件的拥有者。 clearstatcache: 清除文件状态快...[详细]
-
初学 在PHP开发中如何使用Session?
[PHP教程] 2022-03-07 15:45:45 108人阅读
如何使用Session? 以下为引用的内容: ?php //必须在使用前加上; session_start(); ? ?php //考虑我们有时候考虑是否写入session if (isset($_POST[userid])){ //如果真的同意写入: $_SESSION[userid] = $ccdot }el...[详细]
-
PHP实例 实现文件上传的程序源码
[PHP教程] 2022-03-07 15:45:27 146人阅读
如何实现文件上传? 以下为引用的内容: HTML HEAD TITLE文件上传界面/TITLE /HEAD BODYTABLECENTER ? if($UploadAction){ $UploadAction=0; $TimeLimit=60; /*设置超时限制时间默认时间为 30s,设置为0时为不限时 *...[详细]
-
PHP初学者遇到的中文乱码解决方案
[PHP教程] 2022-03-07 15:45:05 182人阅读
整理PHP初学者一定遇到过中文乱码问题,我也遇到过,现在把我用的解决方案共享给大家。 在=mysql_db_query(lib,select * from mytb,); 前面加上 mysql_query(set names gb2312);或者mysql_query(set names gbk);...[详细]
-
大型Web需求处理方案 PHP定位突出
[PHP教程] 2022-03-03 15:35:02 143人阅读
在搜狐社区的技术体系中C的应用主要承载着后台数据处理加速的工作,从而快速地进行数据存储和更新。PHP主要承载了前端的应用,发挥它快速开发和运行稳定的长处,为用户创造良好的浏览体验。搜狐社区之所以能够承载每...[详细]
-
PHP制作的网站意见线上反馈表
[PHP教程] 2022-03-03 15:34:15 75人阅读
这是一个用PHP制作的意见反馈表,稍加修改也可用于网上发信程序,主要是让访问者填写表单,用PHP处理后发送到管理员信箱,并向访问者信箱发送一个证实信件。 以下为引用的内容: about.php ------------------------...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]