-
用实例分析PHP5异常解决
[PHP教程] 2022-01-17 13:12:25 186人阅读
<?php /** * ■㈠PHP5的异常处理 * * PHP 5 添加了类似于其它语言的异常处理模块。在 PHP 代码中所产生的异常可被 throw * 语句抛出并被 catch 语句捕获。需要进行异常处理的代码都必须放入 try 代码块内,以 * 便...[详细]
-
用PHP自动把纯文本转变成Web页面
[PHP教程] 2022-01-17 13:11:56 93人阅读
本篇文章的内容。我将告诉你如何使用PHP来快速将纯ASCII文本完美地转换成为可读的HTML标记。 首先让我们来看一个我朋友希望转换的纯文本文件的例子: Green for Mars! John R. Doe The idea of little green men fro...[详细]
-
用PHP完成Ftp用户的在线管理
[PHP教程] 2022-01-17 13:11:16 188人阅读
领导要我策划一个网页设计大赛和Flash创作大赛,要求必须实现在线报名和上传作品。通过FreeBSD+Apache+PHP+Mysql+FTP我实现了该要求。 Ftp服务器是系统默认带的,采用系统用户的用户名和密码,创建系统用户就等于创...[详细]
-
PHP里通过Web 执行C C++应用程序
[PHP教程] 2022-01-17 13:10:44 74人阅读
一、简介 如果你对Unix/Linux有所了解的话,你应该知道他们大都自带了C和C++的编译器,分别是GCC和G++。Unix在程序安装及Make等许多地方使用到了这些编译器。利用一些控制台命令,C++和PHP, 我将向你介绍怎样生成一...[详细]
-
PHP简单读取PDF页数的完成方法
[PHP教程] 2022-01-17 13:10:11 122人阅读
这篇文章主要为大家详细介绍了PHP简单读取PDF页数的实现方法,具有一定的参考价值,感兴趣的小伙伴们可以参考一下,有需要的朋友可以收藏方便以后借鉴。 本文实例讲述了PHP简单读取PDF页数的实现方法。分享给大家供大...[详细]
-
PHP GZ压缩和解压 代码
[PHP教程] 2022-01-17 13:09:41 52人阅读
废话不多说,直接上PHP代码,如下: /*将字符串添加至GZ文件*/function gz_str($str,$gz_name){ $fp = gzopen ($gz_name, w9); gzwrite ($fp, $str); gzclose($fp); }/*将文件添加至GZ文件*/function gz_file($file,...[详细]
-
PHP截取特定字符前面和后面的内容的完成方法
[PHP教程] 2022-01-17 13:08:49 107人阅读
这篇文章主要为大家详细介绍了PHP截取特定字符前面和后面的内容的实现方法,具有一定的参考价值,感兴趣的小伙伴们可以参考一下,有需要的朋友可以收藏方便以后借鉴。 PHP功能强大,有时候需要用php截取特定字符前面...[详细]
-
PHP动态网站被镜像处理办法 最强PHP防镜像代码
[PHP教程] 2022-01-17 13:06:30 173人阅读
这篇文章主要为大家详细介绍了PHP动态网站被镜像处理方法 最强PHP防镜像代码,具有一定的参考价值,感兴趣的小伙伴们可以参考一下,有需要的朋友可以收藏方便以后借鉴。 针对网站被恶意镜像,说实在的如果是静态网站...[详细]
-
PHP的php-fpm性能设定小秘诀
[PHP教程] 2022-01-17 13:01:48 116人阅读
这篇文章主要为大家详细介绍了PHP的php-fpm性能设置小技巧,具有一定的参考价值,感兴趣的小伙伴们可以参考一下,有需要的朋友可以收藏方便以后借鉴。 经过前面用户出现的问题,很多用户也很在意PHP的php-fpm性能设置...[详细]
-
php设置文件php.ini设定session超时
[PHP教程] 2022-01-17 13:01:11 181人阅读
这篇文章主要为大家详细介绍了php设置文件php.ini设置session超时,具有一定的参考价值,感兴趣的小伙伴们可以参考一下,有需要的朋友可以收藏方便以后借鉴。 php设置文件php.ini设置session超时 ession.use_cookies...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]