-
php里采集抓取页面函数详解
[PHP教程] 2022-02-17 13:13:45 143人阅读
在php中提供了大量的获取远程服务器文件的函数,包括有:file()函数、file_get_contents()函数、fopen()-fread()-fclose()模式、curl方式、fsockopen()函数、socket模式等等,下面我来分别来介绍介绍. 1.file()函数 fil...[详细]
-
php ajax实时输入自动搜寻匹配程序代码
[PHP教程] 2022-02-17 13:13:22 187人阅读
本文章来给大家介绍php ajax实输入自动搜索匹配程序代码,希望此款程序对大家所有帮助了,第一种方法利用了jquery autocomplete,第二种使用了jquery ajax,其实两个都差不多. 最简单的办法我们就是直接使用jquery autoc...[详细]
-
PHP中运用memcache缓存技术提高响应速度详解
[PHP教程] 2022-02-17 13:13:02 60人阅读
php虽然己经做到很好很快了,但是如果大数据量时还是会有些卡了,下面我来给大家介绍PHP中使用memcache缓存技术提高响应速度方法,有需要了解的朋友可参考. memcache既可以在linux下使用,也可以在windows系统下使用,当...[详细]
-
php里数据的批量导入csv文件代码
[PHP教程] 2022-02-17 13:12:40 56人阅读
有时写程序时后台要求把大量数据导入数据库中,比如计算机考试成绩的查询、电话簿的数据等一般都是存放在excel中的,这时我们可把数据导出成csv文件,然后通过以下程序即可在后台批量导入数据到数据库中. 下面只是主要...[详细]
-
PHP调用MySQL存储过程并返回值完成程序
[PHP教程] 2022-02-17 13:12:18 177人阅读
本文章来给大家详细介绍在php中如何来调用执行mysql存储过程然后返回由存储过程返回的值了,有需要了解的同学可进入参考. 调用存储过程的方法. a。如果存储过程有 IN/INOUT参数,声明一个变量,输入参数给存储过程,该变...[详细]
-
PHP把导入和导出CSV文件到mysql数据库办法
[PHP教程] 2022-02-17 13:11:54 167人阅读
因为工作需要我们需要把mysql中的数据导出成csv文件,然后由商家提供的数据我们再要利用php导入csv文件到mysql数据库,下面我来给大家介绍PHP把导入和导出CSV文件到mysql数据库程序代码,有需要了解的朋友可参考. 下面...[详细]
-
php中将文本数据库变为mysql数据库
[PHP教程] 2022-02-17 13:11:20 99人阅读
使用文本数据库一般是针对小型的应用程序了,这种不就需要安装数据库了,我们可以直接操作文本文件就可以了,但时怎么操作都不如mysql数据库好用了,下面我来给大家介绍一个文本数据库转为mysql数据库实例,代码如下: ?ph...[详细]
-
PHP购物车用法之升级购物车数量
[PHP教程] 2022-02-17 13:10:53 91人阅读
购物车数量意思就是在我们买东西时可以随时删除工增加商品,这样我们的购物车就必须更新记录啊,下面我来给大家介绍PHP购物车更新购物车数量程序与原因,有需要了解的朋友可参考. 表单部分,代码如下: form action=?acti...[详细]
-
php连接mysql数据库测试实例解析
[PHP教程] 2022-02-17 13:10:13 55人阅读
如果你要php能与mysql连接,php需要在php.ini中把mysql模块给开启了,具体的开启方法文章后面会介绍了,下面我们来看php连接mysql实例测试吧. PHP连接MySQL数据库是通过 mysql_connect() 函数来打开非持久的 MySQL 连接...[详细]
-
PHP mysql与mysqli事务使用介绍
[PHP教程] 2022-02-17 13:09:51 177人阅读
首先,mysqli 连接是永久连接,而mysql是非永久连接,什么意思呢?mysql连接每当第二次使用的时候,都会重新打开一个新的进程,而mysqli则只使用同一个进程,这样可以很大程度的减轻服务器端压力. mysqli封装了诸如事务等...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]