-
利用PHP V5开发多任务应用程序
[PHP教程] 2022-03-30 12:46:08 187人阅读
许多 PHP 开发人员认为,由于标准的 PHP 缺少线程功能,因此实际 PHP 应用程序不可能执行多任务处理。例如,如果应用程序需要其他 Web 站点的信息,那么在远程检索完成之前它都必须停止。这是错误的!通过本文了解如...[详细]
-
PHP面向对象编程快速入门
[PHP教程] 2022-03-30 12:45:49 198人阅读
面向对象编程(OOP)是我们编程的一项基本技能,PHP4对OOP提供了良好的支持。如何使用OOP的思想来进行PHP的高级编程,对于提高PHP编程能力和规划好Web开发构架都是非常有意义的。下面我们就通过实例来说明使用PHP的OO...[详细]
-
关于PHP在linux下面获取GOOGLE的PR值
[PHP教程] 2022-03-30 12:45:24 184人阅读
关于PHP在linux下面获取GOOGLE的PR值哪位大侠知道,用PHP查询指定网址的pagerank对环境有什么要求啊,我在windows系统下面任何一台机器能行,在linux下面有的服务器能行,有的不能行!下面是我获取GOOGLE PR值的源码...[详细]
-
详细介绍php5编程中的异常处理
[PHP教程] 2022-03-30 12:44:50 109人阅读
1 首先是try,catch ?php $path = D:////in.txt; try //检测异常 { file_open($path); } catch(Exception $e) //捕获异常 { echo $e-getMessage(); } function file_open($path) { if(!file_exists($path)) //如果文...[详细]
-
PHP设置COOKIE保留时间为浏览器进程
[PHP教程] 2022-03-30 12:44:32 63人阅读
例如: 以下为引用的内容: ?php $USERID=PHPer; $CookieTime=0; setcookie(USERID, $USERID, time() $CookieTime,/,pcpchina.com); ? 你会发现这个语句执行过后,Cookie里什么也没有,到下一个页面就显示没有$USERI...[详细]
-
PHP5 UTF8多文件上传类
[PHP教程] 2022-03-30 12:44:07 67人阅读
根据需要写了个PHP5 UTF8环境的文件上传类,支持多文件上传,并对常用文件的类型进行MIME检测. 还有些功能没有加上去,如自动更名,图片处理等.可根据需要自己添加. USE: $up = new upfile(ROOT_PATH.data/.date(Ym,time...[详细]
-
PHP5 OOP编程中的代理与异常
[PHP教程] 2022-03-30 12:43:34 134人阅读
异常处理是PHP 5中的另外一个新特征,当与OOP联用时,它能够实现良好地控制错误处理和报告。 一、 DBQuery对象 现在,我们的DBQuery对象简单地模仿一个存储过程一旦被执行,即返回一个必须进行保存的结果资源;并且...[详细]
-
PHP中addcslashes函数与stripcslashes的用法
[PHP教程] 2022-03-30 12:43:14 149人阅读
今天在写一个网站的英文版时,写完后填加英文资料,我随便填写时一点问题没有,但每当填加指定的内容时却填加不上,也不报错,我查看了数据库,发现这个字段用的是TEXT数据数型,我以为是内容过长的原因,于是我把数...[详细]
-
聊聊PHP开发团队的管理之道
[PHP教程] 2022-03-10 16:41:47 81人阅读
看了标题,也许很多程序员会反感的说:程序员的做人问题先不用谈,你想出来这个标题,那你做人是不是有问题吧! 笔者本人并不反驳这样的说法,每个人都有自己的做人原则。有句俗话说的好:我不苟同你的思想,但是我...[详细]
-
运用PHP制作简单的内容采集器
[PHP教程] 2022-03-10 16:41:19 170人阅读
采集器,通常又叫小偷程序,主要是用来抓取别人网页内容的。关于采集器的制作,其实并不难,就是远程打开要采集的网页,然后用正则表达式将需要的内容匹配出来,只要稍微有点正则表达式的基础,都能做出自己的采集器...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]