-
揭晓php获得网页文件跟路径
[PHP教程] 2022-04-05 11:12:59 182人阅读
echo $_SERVER[DOCUMENT_ROOT].br; //获得服务器文档根变量;echo $_SERVER[PHP_SELF].br; //获得执行该代码的文件服务器绝对路径的变量。 echo __FILE__.br; //获得文件的文件系统绝对路径的变量;echo dirname(__F...[详细]
-
怎样使用PHP创建和修改PDF文档
[PHP教程] 2022-04-05 11:12:22 192人阅读
PDF全称Portable Document Format,译为可移植文档格式,是Adobe公司推出的便携文档格式。PDF具有与操作系统无关的特性,这一性能使它成为在Internet上进行电子文档发行和数字化信息传播的理想文档格式。今天我们来...[详细]
-
细解ASP.NET和PHP全面对比
[PHP教程] 2022-04-05 11:11:44 187人阅读
谁是速度之王?刚刚在9月编程语言排行榜上取得历史性突破的PHP在Web开发领域最到的对手可能就是基于微软.NET技术的ASP.NET。近日,微软的Joe Stagner在博客上发表了一系列文章比较了PHP和ASP.NET性能方面的文章,引...[详细]
-
如何使你的站跟新浪的新闻数据保持同步
[PHP教程] 2022-04-05 11:11:04 63人阅读
采集已经不是什么新名词了,很多站长为了省事,也局限于人力的缺乏,使用程序来给自己的网站添砖加瓦,比如本人的个人网站www.xxfsw.com也采集了大量的新闻,那么如果实现呢?今天我们运用php来实现这个功能。 谈到...[详细]
-
解说PHP中插件机制的一种实现计划
[PHP教程] 2022-04-05 11:10:15 101人阅读
这篇文章的出发点是我对插件机制的理解,及其在PHP中的实现。此方案仅是插件机制在PHP中的实现方案之一,写下来和大家分享,欢迎大家一起讨论。 插件,亦即Plug-in,是指一类特定的功能模块(通常由第三方开发者实现...[详细]
-
分析Php如何实现自动获取关键词
[PHP教程] 2022-04-05 11:09:45 189人阅读
现在的CMS都自带了采集功能,内容和标题相对来说很好处理,但大部分情况关键词很难能提取到。于是自动获取关键字成为当前PHP类CMS的传统问题。那如何才能自动获取关键词呢,其主要步骤主要可以分为如下三个步骤: 1...[详细]
-
简谈PHP闭包特性在实际应用中的问题
[PHP教程] 2022-04-05 11:08:39 81人阅读
PHP5.3 新版本跟随了很多新特性, 其中比较惹眼的特性之一就是支持了闭包。那么以后,我们也可以和那帮写 Ruby、Javascript 等等高科技语言的家伙们一样,写出非常酷的代码吗?呃,其实大部分情况下是可以的,而有些...[详细]
-
接续CKEditor怎样上传图片配置PHP语言
[PHP教程] 2022-04-05 11:07:36 82人阅读
CKEditor的原包中没有包含图片的上传服务器端处理文件,其公司的另一款开源产品:CKFinder做了很好的补充。 但是要下载这个源代码再进行配置,虽然方便了很多,但是仅仅为了上传图片,却要使用这么大的整个系统来使...[详细]
-
解读ImageTTFText函数怎样实现图像加文字水印
[PHP教程] 2022-04-05 11:05:55 199人阅读
ImageTTFText函数实现PHP图像加文字水印功能 一个ImageTTFText函数包含了如下的参数 imagettftext (image,size,angle, x, y,color,fontfile,text) 意思是 imagettftext() 将字符串 text 画到 image 所代表的图像上,...[详细]
-
php怎样实现远程网络文件下载到服务器
[PHP教程] 2022-04-05 11:05:12 52人阅读
php如何实现远程网络文件下载到服务器,本文主要介绍如何用php程序实现将远程网络文件下载到自己的主机(服务器、虚拟主机)上,当然也提供asp、asp.net的源码给大家参考. 最近让 Lc. 下载《汪洋中的一条船》这部感人...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]