-
IIS+php服务器无法上传图片处理办法
[PHP教程] 2022-02-15 15:54:59 94人阅读
服务器上使用Apache2+PHP正常运行,换成IIS+PHP,先后出现了php.ini的环境变量无法读取,php中验证码无法显示的问题,如今又有人反应无法上传图片的问题. 从IIS替换Apache2的过程仅仅是开启IIS,关闭Apache2,其它的没什么...[详细]
-
把FCKeditor导入PHP+SMARTY的办法
[PHP教程] 2022-02-15 15:54:39 68人阅读
提取Fckeditor时,采用如下,PHP用$_POST[p_info]得到FCKeditor的值. 补充: 1 .此处basepath 的路径一定要和上面include的路径一样.否则会找不到文件) 另外,对于这个输入内容的变量,如果要把它存入数据库教程,它的变量...[详细]
-
简单的php操作word文件完成代码
[PHP教程] 2022-02-15 15:54:21 190人阅读
下面我们利用windown com组件来实现doc文件一些简单的操作,希望对你有所帮助,实例代码如下: ?php // 建立一个指向新COM组件的索引 $word = new COM(word.application) or die(Cant start Word!); // 显示目前正在使...[详细]
-
中文分词的php代码
[PHP教程] 2022-02-15 15:54:01 123人阅读
以前有用过dedecms分词功能,经过测试还是不理想,后来经过一些处理得到的结果还是可以接受的,今天我再看到这款分词法,拿出来给大家看看,实例代码如下: ?php class NLP{ private static $cmd_path; // 不以/结尾 stati...[详细]
-
php hash算法实现数组的办法
[PHP教程] 2022-02-15 15:53:43 144人阅读
PHP中使用最多的非Array莫属了,那Array是如何实现的?在PHP内部Array通过一个hashtable来实现,其中使用链接法解决hash冲突的问题,这样最坏情况下,查找Array元素的复杂度为O(N),最好则为1. static inline ulong zend_...[详细]
-
php获取Chianz.com IP地址与地区办法
[PHP教程] 2022-02-15 15:53:25 170人阅读
一个IP获取的结果不是很完善,究其原因是因为ip138的IP解析应对国外的地址时不是很详细,所以又重新写了个用Chianz.com的代码,实例代码如下: !DOCTYPE html html lang=en head title/title meta charset=UTF-8 / meta ...[详细]
-
php 调用 webservice 中文乱码处理方案
[PHP教程] 2022-02-15 15:52:35 193人阅读
由于工作的需要,帮我的同事阿韬测试一下.net的webservice在PHP下的应用.于是开始上网找资料,发现很多php教程er都是用nusoap.于是下载一个回来.用它自带的例子修改一下.可在文章的后面的附件中找到下载地址.代码如下:...[详细]
-
php网站程序备份源码下载
[PHP教程] 2022-02-15 15:52:10 84人阅读
这是一款关于网站目录备份的php教程网站备份程序了,他可以对你能操作权限的目录进行打包生成rar压缩文件,希望有需要的朋友下载看看,实例代码如下: html head meta http-equiv=Content-Type content=text/html; chars...[详细]
-
php中PclZip插件文件解压与压缩文件
[PHP教程] 2022-02-15 15:51:19 114人阅读
最近在开发我的Wordpress插件ShareLink,在这过程中,发现了PclZip这个操作zip文件的PHP类,不得不推荐下,还有另外一个推荐的原因就是在它的源码里面让我发现了一个PHP函数参数的淫荡用法,下面将举例说明. 生成zip文件,...[详细]
-
php sso单点登录实现代码
[PHP教程] 2022-02-15 15:50:59 104人阅读
下面详细讲到了几点.1、点击登录跳转到SSO登录页面并带上当前应用的callback地址 2、登录成功后生成COOKIE并将COOKIE传给callback地址 3、callback地址接收SSO的COOKIE并设置在当前域下再跳回到应用1即完成登录 4、...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]