-
两款php导出excel示例
[PHP教程] 2022-01-18 15:36:53 153人阅读
?php header(content-type:application/vnd.ms-excel; charset=gbk); header(content-disposition:attachment;filename=test_data.xls); $link=mysql_connect(localhost,root,hhhkkk); if($link){ mysql_select_db(d...[详细]
-
php检测服务器的运作
[PHP教程] 2022-01-18 15:36:03 131人阅读
// 检测函数支持 function isfun($funName) { return (false !== function_exists($funName))?支持:font color=red不支持/font; } //整数运算能力测试 function test_int() { $timeStart = gettimeofday(); for($i =...[详细]
-
PHP与AJAX打造高级RSS聚合器
[PHP教程] 2022-01-18 15:35:36 91人阅读
RSS聚合器是一种非凡适合于使用标准AJAX引擎进行构建的应用程序,然而,要实现对RSS回馈的跨域的AJAX请求往往是很难的,在本文中,我将向你展示如何利用一个简单的PHP函数来实现桥接AJAX引擎和RSS内容。 一、引言 现...[详细]
-
运用php的zlib压缩与解压缩swf文件
[PHP教程] 2022-01-18 15:34:54 55人阅读
我在以前写过怎么使用c#来压缩和解压缩swf文件,解压缩,压缩和读取flash头文件信息需要使用一个开源的链接库,而且使用起来也不是很方便,但是使用php就不一样了,php包含了zlib的链接库,可以直接使用其相关功能,下面是...[详细]
-
用PHP生成自己的LOG文档
[PHP教程] 2022-01-18 15:34:27 147人阅读
假如你的服务器不容许你读他的LOG文件,那你只好停下来分析你的访问者?做你自己的LOG文件吧,你仅需做的事情是用PHP计算实际的点击次数,没有错误,没有象304 Not Modified 和 Internal Server Error 一样的错误,你...[详细]
-
PHP生成动态WAP页面
[PHP教程] 2022-01-18 15:34:04 95人阅读
WAP(无线通讯协议)是在数字移动电话、个人手持设备(PDA等)及计算机之间进行通讯的开放性全球标准。由于静态的WAP页面在很多方面不能满足用户个性化的服务请求,因此通过WAP服务器端语言产生动态的WML页面,具有...[详细]
-
php socket讲解和实例
[PHP教程] 2022-01-18 15:33:27 194人阅读
在这一章里你将了解到迷人而又让人容易糊涂的套接字(Sockets),Sockets在PHP中是没有充分利用的功能,今天你将看到产生一个能使用客户端连接的服务器,并在客户端使用socket进行连接,服务器端将详细的处理信息发送给...[详细]
-
php的把ubb代码转变成html代码的程序
[PHP教程] 2022-01-18 15:32:39 119人阅读
?php function ubbcode($str){ //$str = str_replace(file:,file :,$str); //$str = str_replace(files:,files :,$str); //$str = str_replace(script:,script :,$str); //$str = str_replace(js:,js :,$str); //图...[详细]
-
php 解析rss代码一段
[PHP教程] 2022-01-18 15:31:41 157人阅读
?php function my_headlines($url) { $rdf = parse_url($url); $fp = fsockopen($rdf[host], 80, $errno, $errstr, 15); if (!$fp) { $content = font class=contentProblema!/font; return; } if ($fp) { fputs($fp...[详细]
-
自主发布新闻的php代码
[PHP教程] 2022-01-18 15:31:14 152人阅读
新闻文件以文本文件.txt的格式存放在一个固定的目录下,新闻的发布可以自动完成,该过程由两部分组成: 第一是新闻的显示,由shownews.php脚本实现,代码如下: 〈table border=0 width=90%〉 〈?php //在新闻文件中的...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]