<br />
<b>Deprecated</b>:  mysql_escape_string(): This function is deprecated; use mysql_real_escape_string() instead. in <b>/www/wwwroot/ipda.org.cn/source/class/discuz/discuz_database.php</b> on line <b>177</b><br />
<?xml version="1.0" encoding="gbk"?>
<rss version="2.0">
  <channel>
    <title>天空小小岛技术网站 - PHP</title>
    <link>http://tkxxd.net/forum-2-1.html</link>
    <description>Latest 20 threads of PHP</description>
    <copyright>Copyright(C) 天空小小岛技术网站</copyright>
    <generator>Discuz! Board by Comsenz Inc.</generator>
    <lastBuildDate>Mon, 01 Jun 2026 05:09:59 +0000</lastBuildDate>
    <ttl>60</ttl>
    <image>
      <url>http://tkxxd.net/static/image/common/logo_88_31.gif</url>
      <title>天空小小岛技术网站</title>
      <link>http://tkxxd.net/</link>
    </image>
    <item>
      <title>php的 unserialize 一个漏洞</title>
      <link>http://tkxxd.net/thread-1849-1-1.html</link>
      <description><![CDATA[php Version 5.6.4 ChangeLog 中显示修复了一个漏洞


https://bugs.php.net/bug.php?id=68545




漏洞报告中测试代码执行 unserialize时可以直接使php崩溃


受影响版本
PHP 5.0.* 
PHP 5.2.* 
PHP 5.3.*
PHP 5.4.*版本 &lt; 5.4.36
PHP 5.5.*版本 &lt; 5.5 ...]]></description>
      <category>PHP</category>
      <author>s.Bo</author>
      <pubDate>Mon, 29 Dec 2014 02:32:20 +0000</pubDate>
    </item>
    <item>
      <title>看我手动解密wdLinux所有PHP文件-php版</title>
      <link>http://tkxxd.net/thread-1843-1-1.html</link>
      <description><![CDATA[PHP 版


参考 http://www.wooyun.org/bugs/wooyun-2010-071652 中的 perl 代码

Perl 版]]></description>
      <category>PHP</category>
      <author>phper</author>
      <pubDate>Fri, 07 Nov 2014 02:34:57 +0000</pubDate>
    </item>
    <item>
      <title>php curl上传图片时Content-Type错误问题</title>
      <link>http://tkxxd.net/thread-1842-1-1.html</link>
      <description><![CDATA[当使用curl @ 来上传文件时


接收到文件类型变掉


type变为  application/octet-stream
不是image/jpeg 接收侧会判断为不合法，上传失败

解决方法：
通过在文件名后面加上\&quot;;type=image/jpeg\&quot;解决了该问题，如\'file\' =&gt; \'@/123.jpg;type=image/jpeg\'

CUR ...]]></description>
      <category>PHP</category>
      <author>八号</author>
      <pubDate>Thu, 16 Oct 2014 09:25:52 +0000</pubDate>
    </item>
    <item>
      <title>计算字符串长度</title>
      <link>http://tkxxd.net/thread-1836-1-1.html</link>
      <description><![CDATA[]]></description>
      <category>PHP</category>
      <author>八号</author>
      <pubDate>Sat, 09 Aug 2014 08:34:46 +0000</pubDate>
    </item>
    <item>
      <title>file_get_contents(): Unable to find the wrapper &quot;https&quot;解决方案</title>
      <link>http://tkxxd.net/thread-1257-1-1.html</link>
      <description><![CDATA[问题表现
file_get_contents 读取一个正常的 https 的url时，返回 false

打开报错
错误提示


原因
php 所在的环境没有打开 openssl 的支持

解决方法
一、在 windows 下
只要打开相应的 dll 即可，就是找到 php.ini
把

前的分号去掉，重启 web 服务。 ...]]></description>
      <category>PHP</category>
      <author>一粒米</author>
      <pubDate>Mon, 09 Dec 2013 13:36:40 +0000</pubDate>
    </item>
    <item>
      <title>正则表达式匹配不包含某个字符串（不包含某个单词）</title>
      <link>http://tkxxd.net/thread-1240-1-1.html</link>
      <description><![CDATA[正则表达式匹配不包含某个字符串（不包含某个单词）使用正则表达式找出不包含特定字符串的条目


这里要使用否定式前瞻

正则表达式中有前瞻（Lookahead）和后顾（Lookbehind）的概念，这两个术语非常形象的描述了正则引擎的匹配行为。需要注意一点，正则表达式中 ...]]></description>
      <category>PHP</category>
      <author>s.Bo</author>
      <pubDate>Wed, 13 Nov 2013 09:14:15 +0000</pubDate>
    </item>
    <item>
      <title>php之json_encode和json_decode输出格式总结</title>
      <link>http://tkxxd.net/thread-378-1-1.html</link>
      <description><![CDATA[1.当array是一个从0开始的连续数组时，json_encode出来的结果是一个由[]括起来的字符串
而当array是不从0开始或者不连续的数组时，json_encode出来的结果是一个由{}括起来的key-value模式的字符串结果：结果：2.当字符串为这种模式时，json_decode默认解析出来的结果是 ...]]></description>
      <category>PHP</category>
      <author>s.Bo</author>
      <pubDate>Tue, 11 Sep 2012 08:07:42 +0000</pubDate>
    </item>
    <item>
      <title>ie 下 iframe cookie 或 session 失效的问题解决方案</title>
      <link>http://tkxxd.net/thread-377-1-1.html</link>
      <description><![CDATA[案例


chrome 和 firefox 无此问题

解决方案

在 页面B 的 php 脚本里添加搞掂，收工。

另外
由于 session 的机制是将当前的session id发送给客户端存在客户端的cookie中名为PHPSESSID的值里，然后通过 cookie 传递来维持 session 的交互，所以同样的 sess ...]]></description>
      <category>PHP</category>
      <author>一粒米</author>
      <pubDate>Sat, 08 Sep 2012 15:01:14 +0000</pubDate>
    </item>
    <item>
      <title>SHOPEX 4.8.5 注入漏洞以及后台拿SHELL以及补丁</title>
      <link>http://tkxxd.net/thread-360-1-1.html</link>
      <description><![CDATA[漏洞文件：
漏洞核心函数 \\core\\model_v5\\trading\\mdl.goods.php

漏洞代码：\\core\\shop\\controller\\ctl.product.php 文件调用EXP: 保存为html使用即可**** 本内容被作者隐藏 ****

拿shell方法….
**** 本内容被作者隐藏 ****
补丁：

补丁来源：http://bbs.s ...]]></description>
      <category>PHP</category>
      <author>一粒米</author>
      <pubDate>Mon, 25 Jun 2012 01:53:01 +0000</pubDate>
    </item>
    <item>
      <title>php-cgi远程代码执行</title>
      <link>http://tkxxd.net/thread-347-1-1.html</link>
      <description><![CDATA[php-cgi远程代码执行，FastCGI不受影响。PHP官方暂时未发布补丁，请受影响的站长按文章下方提供的方式打好临时补丁。
http://eindbazen.net/2012/05/php-cgi-advisory-cve-2012-1823/

1、本地包含直接执行代码:2、远程包含执行代码:]]></description>
      <category>PHP</category>
      <author>s.Bo</author>
      <pubDate>Fri, 04 May 2012 06:49:27 +0000</pubDate>
    </item>
    <item>
      <title>解决 Snoopy.class.php 模拟请求时很慢的问题</title>
      <link>http://tkxxd.net/thread-343-1-1.html</link>
      <description><![CDATA[Snoopy.class.php 是一个 php 的类，用来模仿 web 浏览器的功能，它能完成获取网页内容和发送表单的任务。
官方网站 http://snoopy.sourceforge.net/
最新版本：1.2.4


一哥们使用 Snoopy.class.php 抓取普通门户网站首页时，居然耗时二十多秒，问我怎么回事儿。 ...]]></description>
      <category>PHP</category>
      <author>一粒米</author>
      <pubDate>Tue, 17 Apr 2012 06:04:57 +0000</pubDate>
    </item>
    <item>
      <title>mkdir_p 递归创建目录</title>
      <link>http://tkxxd.net/thread-340-1-1.html</link>
      <description><![CDATA[]]></description>
      <category>PHP</category>
      <author>一粒米</author>
      <pubDate>Fri, 13 Apr 2012 08:31:05 +0000</pubDate>
    </item>
    <item>
      <title>curl Post时指定 multipart/form-data 或 application/x-www-form-urlencoded 的方法</title>
      <link>http://tkxxd.net/thread-327-1-1.html</link>
      <description><![CDATA[如果$data是字符串，则Content-Type是application/x-www-form-urlencoded。

如果$data是k=&gt;v的数组，则Content-Type是multipart/form-data]]></description>
      <category>PHP</category>
      <author>八号</author>
      <pubDate>Thu, 09 Feb 2012 03:58:33 +0000</pubDate>
    </item>
    <item>
      <title>通过构造Hash冲突实现各种语言的拒绝服务攻击及补丁下载地址</title>
      <link>http://tkxxd.net/thread-319-1-1.html</link>
      <description><![CDATA[攻击的原理很简单, 目前很多语言, 使用hash来存储k-v数据, 包括常用的来自用户的POST数据, 
攻击者可以通过构造请求头, 并伴随POST大量的特殊的”k”值(根据每个语言的Hash算法不同而定制), 
使得语言底层保存POST数据的Hash表因为”冲突”(碰撞)而退化成链表.


 ...]]></description>
      <category>PHP</category>
      <author>一粒米</author>
      <pubDate>Sat, 31 Dec 2011 06:32:59 +0000</pubDate>
    </item>
    <item>
      <title>NETBEANS打开PHP文件中文乱码解决方案</title>
      <link>http://tkxxd.net/thread-317-1-1.html</link>
      <description><![CDATA[默认情况下，NETBEANS认为新打开的文件是 gbk 的。
如果是项目，可以单独设置项目属性中的编码。如果是单个文件，就不行了。
通过以下操作就能将文件默认的编码改成 utf-8 的。

 
1.找到你的Netbeans安装目录下的etc文件夹,如C:\\Program Files\\NetBeans 7.0.1\\etc ...]]></description>
      <category>PHP</category>
      <author>一粒米</author>
      <pubDate>Fri, 16 Dec 2011 07:29:24 +0000</pubDate>
    </item>
    <item>
      <title>File upload error - unable to create a temporary file in Unknown on line 0</title>
      <link>http://tkxxd.net/thread-294-1-1.html</link>
      <description><![CDATA[上传文件出现 

错误

原因主要是：upload_tmp_dir不是没有被定义就是web服务器不具备该目录的文件写入权限。

查看phpinfo 中的upload_tmp_dir  确保upload_tmp_dir配置无误。]]></description>
      <category>PHP</category>
      <author>八号</author>
      <pubDate>Mon, 17 Oct 2011 01:46:15 +0000</pubDate>
    </item>
    <item>
      <title>php-fpm配置文件说明</title>
      <link>http://tkxxd.net/thread-286-1-1.html</link>
      <description><![CDATA[运行时配置
FPM 配置文件为php-fpm.conf，其语法类似 php.ini 。
php-fpm.conf 全局配置段

pid string
PID文件的位置. 默认为空.

error_log string
错误日志的位置. 默认： 安装路径#INSTALL_PREFIX#/log/php-fpm.log.

log_level string
错误级别. 可用级 ...]]></description>
      <category>PHP</category>
      <author>s.Bo</author>
      <pubDate>Sat, 03 Sep 2011 06:40:52 +0000</pubDate>
    </item>
    <item>
      <title>◣☆◢PHP编写网站程序的十个经验技巧◣☆◢</title>
      <link>http://tkxxd.net/thread-271-1-1.html</link>
      <description><![CDATA[◣☆◢PHP编写网站程序的十个经验技巧◣☆◢

全球超过300万个互联网网站的管理员都在使用PHP，使得它成为最为普及的服务器端脚本语言之一。其特点是运行速度快、稳定可靠、跨平台，而且是开放源代码软件。随你使用的水平不同，PHP可以很简单，也可以很复杂，可以只使 ...]]></description>
      <category>PHP</category>
      <author>reshin159</author>
      <pubDate>Fri, 05 Aug 2011 07:47:23 +0000</pubDate>
    </item>
    <item>
      <title>PHP has encountered an Access Violation at 01E8AC5A 错误的一种可能</title>
      <link>http://tkxxd.net/thread-268-1-1.html</link>
      <description><![CDATA[php运行报错误

根据排查发现 mysql_connect 连接的时候 php报的此错误，断定为php的mysql动态链接库有问题

更换 C:\\windows\\system32 下的 libmysql.dll 动态链接库文件 重启 web 服务，程序正常

网上有很多的帖子提到此问题，在这里记录 PHP has encountered  ...]]></description>
      <category>PHP</category>
      <author>云天一</author>
      <pubDate>Wed, 20 Jul 2011 04:27:20 +0000</pubDate>
    </item>
    <item>
      <title>PHP 7展望：PHP需要改变什么</title>
      <link>http://tkxxd.net/thread-267-1-1.html</link>
      <description><![CDATA[本文是从Vic Cherubini 的博文《What PHP Needs to Change》翻译而来，作者从自身对PHP语言的理解和喜爱为出发点，谈了对PHP7的展望，文章列举了作者认为PHP需要改变的地方，并衷心的希望PHP的未来更美好！

程序员(一般)定义好的编程语言是他们知道最好或最经常使用 ...]]></description>
      <category>PHP</category>
      <author>八号</author>
      <pubDate>Wed, 06 Jul 2011 06:57:40 +0000</pubDate>
    </item>
  </channel>
</rss>