-
windows 下 php curl 的支持配置方法
[PHP教程] 2022-01-18 15:24:21 52人阅读
调用curl_init()函数测试,出现错误提示如下:Fatal error: Call to undefined function: curl_init() windowsxp 2003 首先保证你的php已经可以使用,本文不讲解windows下的php配置,只是增加curl的扩展。 1、拷贝PH...[详细]
-
curl out of memory window下PHP调用curl报内存
[PHP教程] 2022-01-18 15:23:34 87人阅读
今天在调用新浪微博api的时候(官网下载的sdk),发现发布图片微博的时候不成功,报错说:Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 4294962523 bytes) in XXXsdksinasaet...[详细]
-
java存入信息php读写memcache乱码问题
[PHP教程] 2022-01-18 15:23:06 188人阅读
故事背景:我用java插入一条数字记录,用php读取无法正确读取,今天发现如果使用MemCachedClient来插入一条数字,或者java的对象,那么在php调出来就是乱码,对象可以理解,简单的数字也会乱码,如:mcc.set(a,25);php中...[详细]
-
php中json_encode格式中文问题解决方法
[PHP教程] 2022-01-18 15:22:35 89人阅读
今天要在MySQL 存储php中json_encode格式信息,英文时没有问题,但是中文时就碰到了遇到中文时,会变成一堆类似uxxxx信息。 1. 原因分析:在存储到数据库时,MySQL不会存储 unicode 字符,MySQL仅支持从基本的多语种平面...[详细]
-
PHPStorm解决Xdebug Slow问题
[PHP教程] 2022-01-18 15:21:53 168人阅读
今天白天才架起PHPStorm+xdebug的调试环境,就遇到了各式各样的问题:A,访问超慢响应、B,访问超快响应但是是空白页。 问题A解决的方法很多,总归还有解决办法;问题B我估计是线程问题,也许可以通过调试php.ini的配置...[详细]
-
php memcached 扩展 timeout 问题
[PHP教程] 2022-01-18 15:21:33 148人阅读
php 中使用memcached扩展来访问memcached时,当memcached服务器无法正常连接,在默认设置下会造成请求响应变慢。注意:无法正常连接指网络故障,如两台服务器无法进行通信等,只要能ping通,就算memcached服务没有开...[详细]
-
php提示 内存位置访问无效
[PHP教程] 2022-01-18 15:20:57 67人阅读
新配置的PHP环境,或者刚做过配置改动,比如新加载的DLL扩展,访问页面,可能会出现内存位置访问无效的错误,主要原因是DLL扩展加载失败。 我们就需要找到是哪一个DLL文件加载出现了问题。排查方法是:将php.ini中 displa...[详细]
-
php与mssql的ntext字段错误总结
[PHP教程] 2022-01-18 15:20:20 58人阅读
php + mssql 让真让人痛苦。这些读 php 读 mssql 的 ntext 字段类型问题又来了:当 ntext 的内容过长时,居然读不完整。 在网上找了很久,都是说 php 读 ntext 出错的,但没发现我的页面出错,就郁闷了。后来才查到...[详细]
-
PHP中常用三种缓存技术
[PHP教程] 2022-01-18 15:19:34 105人阅读
我是把目前php的Cache分成了这四种机制,第一种方式,需要加载模块,可能是收费的比如ZEND公司的,可能是免费的,不过多讨论;第二种方式,比如在成熟的大的站点上用比较合适;第三种方式和第四种四目前PHP业内程序中比较流...[详细]
-
php使用dom解析含有中文字符xml文档
[PHP教程] 2022-01-18 15:19:01 171人阅读
一般我们直接使用dom来处理xml文档时如果里面有中文就会把中文转换成乱码了,下面我们通过使用iconv()函数实现编码转换,防止中文乱码.代码如下: ?php //读取xml文件 $xmlDoc = new DOMDocument(); $xmlDoc-load(htt...[详细]
- 这篇文章主要介绍了Laravel 5.0 发布 新版本特性详解,...[详细]
- 计算两个日期之间的时间差需要先把两个日期转换成纪元...[详细]
- 初步使用面向对象程序设计,要掌握的就是使用面向对象...[详细]
- 每个 PHP 数组内部都有一个指针,该指针指向数组的某...[详细]
- 因为 PHP 是一个 Web 编程语言,在编程过程中难免会遇...[详细]
- PHP 中提供了 return 语句来返回函数的运行结果,其语...[详细]
- final 关键字的作用如下: 使用 final 修饰的类,不能...[详细]
- 在使用 switch 语句时应该注意以下几点: 和 if 语句...[详细]
- 这篇文章主要给大家介绍了关于PHP替换Word中变量并导...[详细]
- 这篇文章主要介绍了PHP常量DIRECTORY_SEPARATOR原理及...[详细]