-
php COM 连通ADODB.Connection数据库
[PHP教程] 2022-02-09 14:04:50 195人阅读
$iishost = new com(npoint_m.host); 加载组件,$r = $iishost-iisstate(10, 1, , , , ); 运行组件功能,返回参数 echo $r; 返回参数,切换net版本为 netstate(ifid, dirname, netver, iissapp, bkwebip, bkpass, webfi...[详细]
-
php memcached安装和使用
[PHP教程] 2022-02-09 14:03:57 140人阅读
1.简介 memcache模块是一个高效的守护进程,提供用于内存缓存的过程式程序和面向对象的方便的接口,特别是对于设计动态web程序时减少对数据库的访问.memcache也提供用于通信对话(session_handler)的处理. 1.1.memcac...[详细]
-
eAccelerator加快php程序
[PHP教程] 2022-02-09 14:03:31 175人阅读
什么是eaccelerator 概念:eaccelerator 是一个免费开源的php加速、优化、编译和动态缓存的项目,它可以通过缓存php代码编译后的结果来提高php脚本的性能,使得一向很复杂和离我们很远的php脚本编译问题完全得到解决,通...[详细]
-
PHP 和 js json的通信实例
[PHP教程] 2022-02-09 14:03:04 119人阅读
简介一下json吧,json(object notation) 是一种轻量级的数据交换格式,易于人阅读和编写,同时也易于机器解析和生成,它基于javascript programming language,standard ecma-262 3rd edition - december 1999的一个子集,...[详细]
-
php 缓存方法
[PHP教程] 2022-02-09 14:02:36 116人阅读
关于缓存技术不只在php有,很多系统都有,这是为了减轻服务器压力与数据库压力来做的,本文章从php缓存技术入门到利用缓存实例来告诉你如何应用php来实例文件缓存描述, 先看这个缓存类,代码如下: class cache{ /* class...[详细]
-
php获取本机mac地址三种办法
[PHP教程] 2022-02-09 14:02:06 121人阅读
//方法一 class getmacaddr { var $return_array = array(); // 返回带有mac地址的字串数组 var $mac_addr; function getmacaddr($os_type) { switch ( strtolower($os_type) ) { case linux: $this-forlinux(); bre...[详细]
-
php ftp上传,下载,删掉服务器文件实例
[PHP教程] 2022-02-09 14:01:43 160人阅读
php ftp上传,下载,删除服务器文件实例. php ftp传送文件到服务器,实例代码如下: ?php // 开始 $ret = ftp_nb_get ($my_connection, test, README, FTP_BINARY, filesize(test)); // 或: $ret = ftp_nb_get ($my_conn...[详细]
-
PHP调用linux命令详细介绍
[PHP教程] 2022-02-09 14:01:03 84人阅读
在php中调用linux命令的函数是 string exec(string command,string[array],int[return_var]); 如:exec( vpopmail );echo exec(whoami); 再看一实例,代码如下: function exec_enabled() { $disabled = explode(, , in...[详细]
-
php 全面禁止浏览器缓存页面内容解析
[PHP教程] 2022-02-09 13:59:25 191人阅读
本文章来给大家介绍如何在php中利用相关保代码来禁止浏览器缓存页面内容,在php中我们只要使用header命令带一些参数即可实例。 代码如下: header(Cache-Control:no-cache,must-revalidate,no-store); //这个no-store...[详细]
-
php 无限分类完成原理详解
[PHP教程] 2022-02-09 13:58:31 118人阅读
在php中无限分类是我们在实际开发中经常用到的一种数据结构,一般我们称之为树形结构,像我网站的分类有php入门,正则等等分类,这种是二级不是无限级了,如果是无限级就可以在子类下加子类了. 我们先来看我实现无限分类...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]