-
文档上传进度条php代码
[PHP教程] 2022-02-15 16:13:21 93人阅读
本文章是利用了php一个插件实例邮php文件上传进度条的功能,方法比较简单,因为都有组件了,所以只要按照人家的意思照办就可以实例php大文件上传的功能了. 目前我知道的方法有两种,一种是使用php的创始人 rasmus lerdor...[详细]
-
php检测文件类别,根据文件header信息
[PHP教程] 2022-02-15 16:13:01 120人阅读
文章提供一款php检测文件类型,根据文件header信息,他可以根据用户发布的文件头部信息来确实文件的类型,代码如下: ?php /*通过文件名,获得文件类型* *@author chengmo* *@copyright cnblog.com/chengmo 2010-10-17 *...[详细]
-
php 问问采集代码
[PHP教程] 2022-02-15 16:12:32 54人阅读
提供一款免费的php 问问采集代码,如果你正想采集问问,但是又不知道怎么写采集程序,这里为你提供一款经典的问问采集程序,代码如下: ?php session_start(); header(content-type:text/html;charset=utf-8); require(st...[详细]
-
php 天气预报代码 采用自中央气象台范围覆盖全
[PHP教程] 2022-02-15 16:11:55 191人阅读
天气预报信息采集自中央气象台,信息准确,覆盖面广,代码简单,返回是json代码,可以用于客户端调用,也可以在服务器端处理后显示,笔者的wordpress天气预报插件就是使用的这段代码,需要注意的是,这段代码会在服务器产生缓...[详细]
-
php模仿asp Application对象在线人数汇总
[PHP教程] 2022-02-15 16:11:31 188人阅读
/* 用法: application(key,value); //设置 key=value $value = application(key); //获取 key的值 */ function application() { $args = func_get_args(); //获取输入参数 //开源代码Cuoxin.com if (count($args) 2...[详细]
-
php购物车示例
[PHP教程] 2022-02-15 16:10:50 123人阅读
这里又提供一款php购物车实例代码,这是一款适合种位要开发商城或购物系统参考的开发实例了,告诉你如果增加商品到购物并删除,与购物车的数据库设计实例. inventory表,代码如下: create table inventory ( product tin...[详细]
-
PHP MemCached 缓存运用
[PHP教程] 2022-02-15 16:10:20 178人阅读
Memcached 是一个高性能的分布式内存对象缓存系统,用于动态Web应用以减轻数据库负载。它通过在内存中缓存数据和对象来减少读取数据库的次数,从而提供动态、数据库驱动网站的速度,Memcached基于一个存储键/值对的hash...[详细]
-
php mysql客户注册登陆代码
[PHP教程] 2022-02-15 16:09:57 172人阅读
这是一款利用php 与mysql数据库实现的用户注册与登录代码,功能也是比较简单实用的用户注册程序,同时也加了用户登录时验证码程序,这样做就安全了很多,代码如下: !doctype html public -//w3c//dtd xhtml 1.0 transiti...[详细]
-
php 仿asp xmlhttprequest获取数据代码
[PHP教程] 2022-02-15 16:08:13 87人阅读
类名:httprequest($url=,$method=get,$usesocket=0) $url为请求的地址;默认请求方法为get;$usesocket默认为0,使用fsockopen方法,如果设置为1则使用socket_create方法 方法: open($ip=,$port=-1) //打开同服务器...[详细]
-
php文件缓存示例代码
[PHP教程] 2022-02-15 16:07:44 155人阅读
缓存在实际使用当中应用很广泛,可以减轻对服务器数据库教程的访问,提高运行速度,目前很多cms内容管理系统中频繁使用缓存机制来提高系统运行的效率. cache.php代码如下: ?php /* 用户需要事先定义的常量: _cachepath...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]