





<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Defy &#187; PHP</title>
	<atom:link href="http://www.defy.com.cn/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.defy.com.cn</link>
	<description>习惯随时记录,沉淀多年知识.</description>
	<lastBuildDate>Thu, 02 Sep 2010 01:55:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>PHP开发工具资源</title>
		<link>http://www.defy.com.cn/2010/04/28/php%e5%bc%80%e5%8f%91%e5%b7%a5%e5%85%b7%e8%b5%84%e6%ba%90/</link>
		<comments>http://www.defy.com.cn/2010/04/28/php%e5%bc%80%e5%8f%91%e5%b7%a5%e5%85%b7%e8%b5%84%e6%ba%90/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 09:36:13 +0000</pubDate>
		<dc:creator>Defy</dc:creator>
				<category><![CDATA[Zend Framework]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.defy.com.cn/?p=341</guid>
		<description><![CDATA[一 设计工具 UML 和相关设计工具 - Argo UML UML绘图工具，支持PHP stub生成。 (commercial spin off is Posideon) –Java编写。 - Umbrello UML UML绘图工具，支持PHP stub生成。 需要Unix / KDE。 - Dia 支持UML 的绘图工具 -使用AutoDia 生成PHP。 - XMI 2 PHP 从XMI文档生成PHP代码，用XML描述UML的一种形式。 二 编码工具 推荐的 IDE / 编辑器 - PHP Eclipse Eclipse IDE的PHP插件 - PHP Edit 可能是Windows下最好的免费IDE了 - JEdit 支持 PHP的IDE (plus loads [...]]]></description>
		<wfw:commentRss>http://www.defy.com.cn/2010/04/28/php%e5%bc%80%e5%8f%91%e5%b7%a5%e5%85%b7%e8%b5%84%e6%ba%90/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AS3.0和php数据交互POST方式</title>
		<link>http://www.defy.com.cn/2010/02/08/as3-0%e5%92%8cphp%e6%95%b0%e6%8d%ae%e4%ba%a4%e4%ba%92post%e6%96%b9%e5%bc%8f/</link>
		<comments>http://www.defy.com.cn/2010/02/08/as3-0%e5%92%8cphp%e6%95%b0%e6%8d%ae%e4%ba%a4%e4%ba%92post%e6%96%b9%e5%bc%8f/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 09:23:48 +0000</pubDate>
		<dc:creator>Defy</dc:creator>
				<category><![CDATA[网站框架]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.defy.com.cn/?p=309</guid>
		<description><![CDATA[首先打开flash建立一个as3.0的文件 拖 textarea和button组建到舞台上 分别给两个组件命名：txtcontent和addcontent 然后点第一帧添加动作： var url:String = &#8220;http://localhost/tt.php&#8221;;   //执行操作数据库的php文件 var requestData:URLRequest = new URLRequest(url);   //新建URLRequest对象，用来获取flash中textArea的数据 var loader:URLLoader = new URLLoader();   //建立URLLoader对象，用来发送flash中textArea的数据 addcontent.addEventListener(MouseEvent.CLICK,addData); //为button附事件对象，点击按钮执行addData函数 function addData(e:Event){        requestData.data = String;   //   .data 为URLRequest一个属性分三种大家可以查手册查到        requestData.method = URLRequestMethod.POST;   //.method 也为 URLLoader的一个属性值        var urlvariables:URLVariables = new URLVariables(); //建立URLVariables对象，        urlvariables.cc = txtcontent.text; [...]]]></description>
		<wfw:commentRss>http://www.defy.com.cn/2010/02/08/as3-0%e5%92%8cphp%e6%95%b0%e6%8d%ae%e4%ba%a4%e4%ba%92post%e6%96%b9%e5%bc%8f/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP中采用POST方式发送数据</title>
		<link>http://www.defy.com.cn/2010/02/08/php%e4%b8%ad%e9%87%87%e7%94%a8post%e6%96%b9%e5%bc%8f%e5%8f%91%e9%80%81%e6%95%b0%e6%8d%ae/</link>
		<comments>http://www.defy.com.cn/2010/02/08/php%e4%b8%ad%e9%87%87%e7%94%a8post%e6%96%b9%e5%bc%8f%e5%8f%91%e9%80%81%e6%95%b0%e6%8d%ae/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 09:14:14 +0000</pubDate>
		<dc:creator>Defy</dc:creator>
				<category><![CDATA[网站框架]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.defy.com.cn/?p=306</guid>
		<description><![CDATA[最近两天项目需要，由于服务器正在开发，客户端进度稍快一些，没有服务器进行联调。因此我重操旧业，用PHP快速的写了一些web页面，算是当测试桩程序了，七八个web接口，基本上5到6个小时搞定了。由于当前的服务器需要与其他服务器进行对接，因此写的这个web服务还需要充当client角色，向其他服务器发送请求。 在网上搜了一下，基本上两种方法：（转自网友文章） 1.通过curl函数 $post_data = array () ; $post_data [ ' clientname ' ] = &#8221; test08 &#8221; ; $post_data [ ' clientpasswd ' ] = &#8221; test08 &#8221; ; $post_data [ ' submit ' ] = &#8221; submit &#8221; ; $url = &#8216; http://xxx.xxx.xxx.xx/xx/xxx/top.php &#8216; ; $o = &#8220;&#8221; ; foreach ( $post_data as [...]]]></description>
		<wfw:commentRss>http://www.defy.com.cn/2010/02/08/php%e4%b8%ad%e9%87%87%e7%94%a8post%e6%96%b9%e5%bc%8f%e5%8f%91%e9%80%81%e6%95%b0%e6%8d%ae/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>介绍几种PHP获取POST数据技巧</title>
		<link>http://www.defy.com.cn/2010/02/08/%e4%bb%8b%e7%bb%8d%e5%87%a0%e7%a7%8dphp%e8%8e%b7%e5%8f%96post%e6%95%b0%e6%8d%ae%e6%8a%80%e5%b7%a7/</link>
		<comments>http://www.defy.com.cn/2010/02/08/%e4%bb%8b%e7%bb%8d%e5%87%a0%e7%a7%8dphp%e8%8e%b7%e5%8f%96post%e6%95%b0%e6%8d%ae%e6%8a%80%e5%b7%a7/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 09:10:22 +0000</pubDate>
		<dc:creator>Defy</dc:creator>
				<category><![CDATA[网站框架]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.defy.com.cn/?p=303</guid>
		<description><![CDATA[（一）表单POST方式提交情况下PHP获取POST数据 $_POST 与 php://input可以取到值，$HTTP_RAW_POST_DATA 为空 $_POST 以关联数组方式组织提交的数据，并对此进行编码处理，如urldecode，甚至编码转换。 php://input 可通过输入流以文件读取方式取得未经处理的POST原始数据 （二）fsockopen提交POST数据下PHP获取POST数据 $sock = fsockopen(&#8220;localhost&#8221;, 80, $errno, $errstr, 30); if (!$sock) die(&#8220;$errstr ($errno)\n&#8221;); $data = &#8220;txt=&#8221; . urlencode(&#8220;中&#8221;) . &#8220;&#38;bar=&#8221; . urlencode(&#8220;Value for Bar&#8221;); fwrite($sock, &#8220;POST /posttest/response .php HTTP/1.0\r\n&#8221;); fwrite($sock, &#8220;Host: localhost\r\n&#8221;); fwrite($sock, &#8220;Content-type: applicat ion/x-www-form-urlencoded\r\n&#8221;); fwrite($sock, &#8220;Content-length: &#8221; . strlen($data) . &#8220;\r\n&#8221;); fwrite($sock, &#8220;Accept: */*\r\n&#8221;); fwrite($sock, [...]]]></description>
		<wfw:commentRss>http://www.defy.com.cn/2010/02/08/%e4%bb%8b%e7%bb%8d%e5%87%a0%e7%a7%8dphp%e8%8e%b7%e5%8f%96post%e6%95%b0%e6%8d%ae%e6%8a%80%e5%b7%a7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP中PNG透明处理代码</title>
		<link>http://www.defy.com.cn/2010/01/18/php%e4%b8%adpng%e9%80%8f%e6%98%8e%e5%a4%84%e7%90%86%e4%bb%a3%e7%a0%81/</link>
		<comments>http://www.defy.com.cn/2010/01/18/php%e4%b8%adpng%e9%80%8f%e6%98%8e%e5%a4%84%e7%90%86%e4%bb%a3%e7%a0%81/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 05:42:33 +0000</pubDate>
		<dc:creator>Defy</dc:creator>
				<category><![CDATA[网站框架]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.defy.com.cn/?p=268</guid>
		<description><![CDATA[PHP中PNG透明处理代码]]></description>
		<wfw:commentRss>http://www.defy.com.cn/2010/01/18/php%e4%b8%adpng%e9%80%8f%e6%98%8e%e5%a4%84%e7%90%86%e4%bb%a3%e7%a0%81/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>解決IE6未支援png透明圖的問題(續篇)</title>
		<link>http://www.defy.com.cn/2010/01/11/%e8%a7%a3%e6%b1%baie6%e6%9c%aa%e6%94%af%e6%8f%b4png%e9%80%8f%e6%98%8e%e5%9c%96%e7%9a%84%e5%95%8f%e9%a1%8c%e7%ba%8c%e7%af%87/</link>
		<comments>http://www.defy.com.cn/2010/01/11/%e8%a7%a3%e6%b1%baie6%e6%9c%aa%e6%94%af%e6%8f%b4png%e9%80%8f%e6%98%8e%e5%9c%96%e7%9a%84%e5%95%8f%e9%a1%8c%e7%ba%8c%e7%af%87/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 05:13:08 +0000</pubDate>
		<dc:creator>Defy</dc:creator>
				<category><![CDATA[所有文章]]></category>
		<category><![CDATA[网站框架]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.defy.com.cn/?p=126</guid>
		<description><![CDATA[之前這篇.. http://phorum.study-area.org/index.php/topic,55349.0.html 最後我是決定使用 pngfix.js 來處理 其做法是使用瀏覽器端的 windows 本身提供的 AlphaImageLoader 來處理圖片 但是用 AlphaImageLoader 處理過後的圖片會有一個問題 圖片上右鍵的功能會失效 因為原來的圖片已經被 AlphaImageLoader 轉換成非圖片格式 某些目錄裡的圖片我還需要右鍵的功能 這些目錄裡的圖片就不能用 pngfix.js 來修正透明圖 稍微玩了一下用 PHP::imagick png 轉 gif 保留透明的方式 .htaccess 程式碼: RewriteEngine On RewriteCond %{HTTP_USER_AGENT} ^Mozilla/4(.*)MSIE\s6\.0 RewriteRule (.*\.png)$ convertPng2Gif.php?i=$1 convertPng2Gif.php 程式碼: 將這兩個檔案放在要將 png 轉成 gif 的目錄裡就可以了 做了一些修改 如果 png 圖檔有同檔名 gif 圖檔 直接送出 gif 圖檔.. convertPng2Gif.php 程式碼:]]></description>
		<wfw:commentRss>http://www.defy.com.cn/2010/01/11/%e8%a7%a3%e6%b1%baie6%e6%9c%aa%e6%94%af%e6%8f%b4png%e9%80%8f%e6%98%8e%e5%9c%96%e7%9a%84%e5%95%8f%e9%a1%8c%e7%ba%8c%e7%af%87/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>zend studio 7.1默认关联修改</title>
		<link>http://www.defy.com.cn/2010/01/11/zend-studio-7-1%e9%bb%98%e8%ae%a4%e5%85%b3%e8%81%94%e4%bf%ae%e6%94%b9/</link>
		<comments>http://www.defy.com.cn/2010/01/11/zend-studio-7-1%e9%bb%98%e8%ae%a4%e5%85%b3%e8%81%94%e4%bf%ae%e6%94%b9/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 04:59:44 +0000</pubDate>
		<dc:creator>Defy</dc:creator>
				<category><![CDATA[所有文章]]></category>
		<category><![CDATA[网站框架]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.defy.com.cn/?p=115</guid>
		<description><![CDATA[1.startup zend studio. 2.go Help->software update->manage Configuration,in &#8220;Product Configuration&#8221; window.set &#8220;WYSIWYG PHP/HTML Editing feature 6.0 &#8221; to disable. 3.go windows->proferences,General -> Editor->File Associations, choose (*.html) . (*.htm) Aptana Html Editor (*.js) Aptana JS Editor (*.css) Aptana CSS Editor. 4.restart Zend Studio.]]></description>
		<wfw:commentRss>http://www.defy.com.cn/2010/01/11/zend-studio-7-1%e9%bb%98%e8%ae%a4%e5%85%b3%e8%81%94%e4%bf%ae%e6%94%b9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>zend studio 6.0+aptana</title>
		<link>http://www.defy.com.cn/2010/01/11/zend-studio-6-0aptana/</link>
		<comments>http://www.defy.com.cn/2010/01/11/zend-studio-6-0aptana/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 04:58:21 +0000</pubDate>
		<dc:creator>Defy</dc:creator>
				<category><![CDATA[所有文章]]></category>
		<category><![CDATA[网站框架]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.defy.com.cn/?p=114</guid>
		<description><![CDATA[一直在寻找一个完美的IDE统一体，可以统一完成所有PHP，javascript，css，html的编辑。 我一直在尝试，试过zend studio，editplus，ultraeditor，DW，始终无法在一个编辑器里完成所有的操作，怎样都会少那么一点支持。 终于！在zend studio for eclipse 出来之后我看到了希望，就是因为eclipse传说是个强大的插线板！ 首次接触eclipse，经过几天的尝试，终于为这个插线板插上了完善的功能了。 1.PHP相关的所有功能zend studio for eclipse已经完善地提供了，只是用惯了zend studio 5.5的话会有点不习惯，咋说也要适应一下eclipse的习惯。 2.最难解决的是js和css的相关支持，特别是js，实在是让广大开发人员头痛的东西。用了几年的ultraeditor+alert()的编辑调试终于受不了了，于是一直在找一个完美一点的js编辑器， 【ultraeditor，editplus】之类的文本编辑器确实可以提供很快速的编辑，但是代码提示辅助实在不足，调试就更加不用说了，一句句alert()。 【Dreamweaver】也是很多人使用的，但这东西很明显不是专门为写js设计的，写css倒是很完美，对js基本只是提供了代码高亮而已 【1st javascript editor，Antechinus JavaScript Editor v9】这2个js编辑器可以说已经非常完善了，强大的代码提示，代码库辅助等功能，完全是为js而存在的。可惜的是这2者对中文的支持实在让人无奈，因为这2者都是不支持utf-8编码的文档的，所有utf-8编码的文档中的中文都只能看到乱码，只认gb2312 。没办法只能继续寻找。 【aptana】一个新兴的基于eclipse的插件，可以说这个插件已经完美地解决了js，css，html的编写了，加上强大的调试功能（非pro版的只支持firefox的调试，不知又没破解，pro版的就可以支持IE调试），唯一的缺点就是慢！没办法，基于eclipse的东西，至少准备200m的空闲内存，通常是能吃掉200~300m的。 好！现在的问题就是在zend studio for eclipse 上插上aptana就完美啦 1.装好zend studio for eclipse，网上已经有完美的破解了 2.下载aptana的插件版：http://update.aptana.com/update/studio/3.2/ ，Download Plugin Update Site ，下载下来的zip文件不用解压。 3.插上：打开zend studio for eclipse，help->software updates->find and install&#8230; 选search for new features to install，next，New Archived [...]]]></description>
		<wfw:commentRss>http://www.defy.com.cn/2010/01/11/zend-studio-6-0aptana/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>如何去ecshop2.7版权,ecshop版权,ecshop2.7去版权</title>
		<link>http://www.defy.com.cn/2010/01/11/%e5%a6%82%e4%bd%95%e5%8e%bbecshop2-7%e7%89%88%e6%9d%83ecshop%e7%89%88%e6%9d%83ecshop2-7%e5%8e%bb%e7%89%88%e6%9d%83/</link>
		<comments>http://www.defy.com.cn/2010/01/11/%e5%a6%82%e4%bd%95%e5%8e%bbecshop2-7%e7%89%88%e6%9d%83ecshop%e7%89%88%e6%9d%83ecshop2-7%e5%8e%bb%e7%89%88%e6%9d%83/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 04:57:20 +0000</pubDate>
		<dc:creator>Defy</dc:creator>
				<category><![CDATA[所有文章]]></category>
		<category><![CDATA[网站框架]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.defy.com.cn/?p=112</guid>
		<description><![CDATA[开始没注意到下面那个乱飞的版权, 现在告诉大家怎么去掉吧!! js/common.js 这里的面版权 第244行: 函数如下: onload = function() { var link_arr = document.getElementsByTagName(String.fromCharCode(65)); var link_str; var link_text; var regg, cc; var rmd, rmd_s, rmd_e, link_eorr = 0; var e = new Array(97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, [...]]]></description>
		<wfw:commentRss>http://www.defy.com.cn/2010/01/11/%e5%a6%82%e4%bd%95%e5%8e%bbecshop2-7%e7%89%88%e6%9d%83ecshop%e7%89%88%e6%9d%83ecshop2-7%e5%8e%bb%e7%89%88%e6%9d%83/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>discuz 登陆限制修改</title>
		<link>http://www.defy.com.cn/2010/01/11/discuz-%e7%99%bb%e9%99%86%e9%99%90%e5%88%b6%e4%bf%ae%e6%94%b9/</link>
		<comments>http://www.defy.com.cn/2010/01/11/discuz-%e7%99%bb%e9%99%86%e9%99%90%e5%88%b6%e4%bf%ae%e6%94%b9/#comments</comments>
		<pubDate>Mon, 11 Jan 2010 04:55:05 +0000</pubDate>
		<dc:creator>Defy</dc:creator>
				<category><![CDATA[所有文章]]></category>
		<category><![CDATA[网站框架]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.defy.com.cn/?p=110</guid>
		<description><![CDATA[还是跟以前差不多 因为DZ 官方只是更新不是换程序所以请大家找到 要修改登录次数或时间限制请修改 include 目录下的 misc.func.php 文件： 找到下面这句: $return = (!$login &#124;&#124; ($timestamp &#8211; $login['lastupdate'] > 900)) ? 4 : max(0, 25555 &#8211; $login['count']); 修改限制时间： 将这个语句$login['lastupdate'] > 900)) ? 中的900改成你要定义的即可 修改登录次数：将这个语句 max(0, 25555 &#8211; $login['count']); 中的25555改成你要定义的次数即可 官方默认的是 5 我已经修改了]]></description>
		<wfw:commentRss>http://www.defy.com.cn/2010/01/11/discuz-%e7%99%bb%e9%99%86%e9%99%90%e5%88%b6%e4%bf%ae%e6%94%b9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
