-
PHP系统命令函数使用解析
[PHP教程] 2022-07-22 12:30:48 165人阅读
本篇文章是对PHP中系统命令函数的使用进行了详细的分析介绍,需要的朋友参考下 复制代码 代码如下: function execute($cmd) { $res = ; if ($cmd) { if(function_exists(system)) { @ob_start(); @system($cmd); $re...[详细]
-
php字符串截取的容易方法
[PHP教程] 2022-07-22 12:28:54 116人阅读
这篇文章介绍了php字符串截取的简单方法,有需要的朋友可以参考一下 复制代码 代码如下: strpos(string,find,start) 实例: 复制代码 代码如下: ?php echo strpos(Hello world!,wo); ? 输出6 复制代码 代码如下: sub...[详细]
-
php调用MsSQL存储过程使用内置RETVAL收取过程中
[PHP教程] 2022-07-22 12:28:16 190人阅读
本篇文章是对php调用MsSQL存储过程使用内置RETVAL获取过程中的return值的方法进行了详细的分析介绍,需要的朋友参考下 【PHP代码】 复制代码 代码如下: $stmt = mssql_init(P__Global_Test, $conn) or die(initializ...[详细]
-
PHP中使用协同程序实现合作多任务
[PHP教程] 2022-07-22 12:26:24 146人阅读
PHP5.5一个比较好的新功能是实现对生成器和协同程序的支持。对于生成器,PHP的文档和各种其他的博客文章(就像这一个或这一个)已经有了非常详细的讲解。协同程序相对受到的关注就少了,所以协同程序虽然有很强大的...[详细]
-
php修改NetBeans默认字体的大小
[PHP教程] 2022-07-22 12:26:06 125人阅读
在Netbeans中由于使用了Swing进行开发,所以其中界面的字体也是由Java虚拟机进行配置而不是随操作系统的。在安装完Netbeans后默认的字体大小是11px。而在Windows下的宋体最小支持12px。所以字体为11px就已经无法完整...[详细]
-
PHP删除数组中特定元素的两种方法
[PHP教程] 2022-07-22 12:25:43 193人阅读
这篇文章介绍了PHP中删除数组中特定元素的两种方法,有需要的朋友可以参考一下 方法一: 复制代码 代码如下: ?php $arr1 = array(1,3, 5,7,8); $key = array_search(3, $arr1); if ($key !== false) array_splice($a...[详细]
-
浅析php过滤html字符串,防止SQL注入的方法
[PHP教程] 2022-07-22 12:24:57 110人阅读
本篇文章是对php中过滤html字符串,防止SQL注入的方法进行了详细的分析介绍,需要的朋友参考下 批量过滤post,get敏感数据 复制代码 代码如下: $_GET = stripslashes_array($_GET); $_POST = stripslashes_array($_POS...[详细]
-
浅析PHP中的字符串编码转换自动识别原编码
[PHP教程] 2022-07-22 12:24:30 162人阅读
本篇文章是对PHP中字符串编码转换的实现代码进行了详细的分析介绍,需要的朋友参考下 复制代码 代码如下: /** * 对数据进行编码转换 * @param array/string $data 数组 * @param string $output 转换后的编码 */ fun...[详细]
-
服务器变量 $_SERVER 的深入解析
[PHP教程] 2022-07-22 12:24:11 165人阅读
服务器变量 $_SERVER 的深入解析: 1、$_SESSION[PHP_SELF] -- 获取当前正在执行脚本的文件名 2、$_SERVER[SERVER_PROTOCOL] -- 请求页面时通信协议的名称和版本。例如,HTTP/1.0。 3、$_SERVER[REQUEST_TIME] -- 请...[详细]
-
在wamp集成环境下升级php版本
[PHP教程] 2022-07-22 12:23:32 107人阅读
wamp集成环境下升级php版本 1.下载php版本压缩包,解压php版本压缩包 2.停掉wamp服务 3.替换wamp/php文件 4.替换wamp/Apache2/bin目录下的php5nsapi.dll 和 php5ts.dll(对应当前php版本的) 5.重启wamp服务 6.phpinf...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]