<?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>Eric&#039;s Who Know &#187; PHP</title> <atom:link href="http://who-know.com/tag/php/feed/" rel="self" type="application/rss+xml" /><link>http://who-know.com</link> <description>C&#039;est La Vie</description> <lastBuildDate>Mon, 17 May 2010 22:21:05 +0000</lastBuildDate> <generator>http://wordpress.org/?v=2.9.2</generator> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <item><title>Fatal error: Maximum execution time of 30 seconds exceeded</title><link>http://who-know.com/fatal-error-maximum-execution-time-of-30-seconds-exceeded/</link> <comments>http://who-know.com/fatal-error-maximum-execution-time-of-30-seconds-exceeded/#comments</comments> <pubDate>Thu, 18 Feb 2010 22:35:55 +0000</pubDate> <dc:creator>Eric</dc:creator> <category><![CDATA[WordPress]]></category> <category><![CDATA[.htaccess]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[php.ini]]></category> <category><![CDATA[SuPHP]]></category> <category><![CDATA[wp-config]]></category><guid isPermaLink="false">http://who-know.com/fatal-error-maximum-execution-time-of-30-seconds-exceeded/</guid> <description><![CDATA[WordPress 出現 Fatal error: Maximum execution time of 30 seconds exceeded 是因為主機對程式的執行時間作了限制，解決方法如下 :
// 擇一使用即可，依不可行性排序
01. 自己的主機 or 虛擬主機且可以修改 php.ini
a. 修改 php.ini 裡 max_execution_time 的數值，重新啟動 Server
b. .htaccess 加上 php_value max_input_time 300
c. wp-config.php 加上 set_time_limit( 300 );
02. 虛擬主機 : 不可以修改 php.ini
a. .htaccess 加上 php_value max_execution_time 300
b. wp-config.php 加上 set_time_limit( 300 );
// 如果主機有安裝 suPHP
.htaccess  file 的 php_value [...]]]></description> <content:encoded><![CDATA[<p><a href="http://wordpress.org/" target="_blank">WordPress</a> 出現 Fatal error: Maximum execution time of 30 seconds exceeded 是因為主機對程式的執行時間作了限制，解決方法如下 :</p><p>// 擇一使用即可，依不可行性排序</p><p>01. 自己的主機 or 虛擬主機且可以修改 php.ini</p><p>a. 修改 php.ini 裡 max_execution_time 的數值，重新啟動 Server<br /> b. .htaccess 加上 php_value max_input_time 300<br /> c. wp-config.php 加上 set_time_limit( 300 );</p><p>02. 虛擬主機 : 不可以修改 php.ini</p><p>a. .htaccess 加上 php_value max_execution_time 300<br /> b. wp-config.php 加上 set_time_limit( 300 );</p><p>// 如果主機有安裝 <a href="http://www.suphp.org/" target="_blank">suPHP</a><br /> <span style="color: #ff0080">.htaccess  file 的 php_value max_execution_time 300 改成 max_execution_time = 300</span></p><p>Ref :<br /> 01. <a href="http://www.php.net/manual/en/info.configuration.php" target="_blank">PHP Runtime Configuration</a><br /> 02. <a href="http://php.net/manual/en/function.set-time-limit.php" target="_blank">PHP set_time_limit ( int $seconds )</a></p> ]]></content:encoded> <wfw:commentRss>http://who-know.com/fatal-error-maximum-execution-time-of-30-seconds-exceeded/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>解決 PHP 5.3.0 + WordPress 造成 It is not safe to rely on the system’s timezone settings.</title><link>http://who-know.com/php-wordpress-it-is-not-safe-to-rely-on-the-system-timezone-settings/</link> <comments>http://who-know.com/php-wordpress-it-is-not-safe-to-rely-on-the-system-timezone-settings/#comments</comments> <pubDate>Sat, 03 Oct 2009 18:16:36 +0000</pubDate> <dc:creator>Eric</dc:creator> <category><![CDATA[Free Teaching]]></category> <category><![CDATA[APMServ]]></category> <category><![CDATA[Appserv]]></category> <category><![CDATA[date_default_timezone_set]]></category> <category><![CDATA[EasyPHP]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[php.ini]]></category> <category><![CDATA[PHPnow]]></category> <category><![CDATA[timezone]]></category> <category><![CDATA[WampServer]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[XAMPP]]></category><guid isPermaLink="false">http://who-know.com/?p=83</guid> <description><![CDATA[Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EEST/3.0/DST' instead in [...]]]></description> <content:encoded><![CDATA[<p>Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EEST/3.0/DST' instead in /Path_to_your/www/wp-includes/functions.php on line 35</p><p>Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EEST/3.0/DST' instead in /Path_to_your/www/wp-includes/functions.php on line 43</p><p>Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EEST/3.0/DST' instead in /Path_to_your/www/wp-includes/functions.php on line 35</p><p>Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EEST/3.0/DST' instead in /Path_to_your/www/wp-includes/functions.php on line 43</p><p><span id="more-83"></span>00. 大多看到這問題發生在您用的是 <a href="http://www.php.net/" target="_blank">PHP</a> 5.3.0 或使用套裝軟體搭配的 <a href="http://www.php.net/" target="_blank">PHP</a> 版本是 5.3.0。</p><p>01. 下面為解決的方法, 則一使用即可, 依推薦使用的順序排序。</p><p>&nbsp;&nbsp;1. 修改 ./wp-config.php, 加上</p><pre class="brush: php;">date_default_timezone_set('Asia/Taipei');</pre><p>&nbsp;&nbsp;2. 修改 ./wp-includes/functions.php</p><p>&nbsp;&nbsp;&nbsp;&nbsp;a. 在第一個 function 前面加上<pre class="brush: php;">date_default_timezone_set('UTC+8');</pre><p>&nbsp;&nbsp;&nbsp;&nbsp;b. 在第一個 function 前面加上<pre class="brush: php;">date_default_timezone_set('Asia/Taipei');</pre><p>&nbsp;&nbsp;3. 修改 php.ini, 加上</p><pre class="brush: php;">date.timezone = &quot;Asia/Taipei&quot;</pre><p>02. 上面的 Asia/Taipei 均可以替換成下面任一城市, 其它城市請到 <a href="http://www.appservnetwork.com/" target="_blank">PHP timezones</a> 尋找</p><p>日本 : Asia/Tokyo<br /> 台北 : Asia/Taipei<br /> 重慶 : Asia/Chongqing<br /> 漢城 : Asia/Seoul<br /> 上海 : Asia/Shanghai<br /> 新加坡 : Asia/Singapore<br /> 澳門 : Asia/Macao 或 Asia/Macau<br /> 香港 : Asia/Hong_Kong 或 Asia/Chungking</p><p>03. 上面所提到的套裝軟體為 <a href="http://www.appservnetwork.com/" target="_blank">AppServ</a>, <a href="http://phpnow.org/" target="_blank">PHPnow</a>, <a href="http://www.apachefriends.org/" target="_blank">XAMPP</a>, <a href="http://www.wampserver.com/" target="_blank">WampServer</a>, <a href="http://www.wampserver.com/" target="_blank">APMServ</a>, <a href="http://www.easyphp.org/index.php" target="_blank">EasyPHP</a>。</p><p>Ref:<br /> 01. <a href="http://wordpress.org/support/topic/285337" target="_blank">WordPress Support</a><br /> 02. <a href="http://us3.php.net/manual/en/function.date-default-timezone-set.php" target="_blank">PHP date_default_timezone_set</a></p> ]]></content:encoded> <wfw:commentRss>http://who-know.com/php-wordpress-it-is-not-safe-to-rely-on-the-system-timezone-settings/feed/</wfw:commentRss> <slash:comments>6</slash:comments> </item> <item><title>在文章標題添加圖片</title><link>http://who-know.com/add-images-to-your-post-title/</link> <comments>http://who-know.com/add-images-to-your-post-title/#comments</comments> <pubDate>Sun, 27 Sep 2009 13:48:40 +0000</pubDate> <dc:creator>Eric</dc:creator> <category><![CDATA[Free Teaching]]></category> <category><![CDATA[Html]]></category> <category><![CDATA[PHP]]></category><guid isPermaLink="false">http://who-know.com/?p=81</guid> <description><![CDATA[1. 如果想要讓圖片顯示在首頁的文章標題
&#160;&#160;a. 打開 ./wp-content/themes/Your_Theme_Name/index.php
&#160;&#160;b. 找到
&#60;?php the_title(); ?&#62;
&#160;&#160;c. 選擇下面任一種 code 加上
2. 如果想要讓圖片顯示在內文的文章標題
&#160;&#160;a. 打開 ./wp-content/themes/Your_Theme_Name/single.php
&#160;&#160;b. 找到
&#60;?php the_title(); ?&#62;
&#160;&#160;c. 選擇下面任一種 code 加上3. 上面所說的 code
&#160;&#160;a. 每篇文章都要顯示圖片&#60;img src=&#34;圖片網址&#34; title=&#34;&#34; alt=&#34;&#34;/&#62;&#160;&#160;b. 只要最近 24 Hours 所發表的文章才要顯示圖片
&#60;?php
$time_Post = $post-&#62;post_date;
$time_Now = date( &#34;Y-m-d H:i:s&#34; );
$diff = ( strtotime( $time_Now ) - strtotime( $time_Post ) ) / [...]]]></description> <content:encoded><![CDATA[<p>1. 如果想要讓圖片顯示在首頁的文章標題</p><p>&nbsp;&nbsp;a. 打開 ./wp-content/themes/Your_Theme_Name/index.php<br /> &nbsp;&nbsp;b. 找到<pre class="brush: php;">&lt;?php the_title(); ?&gt; </pre><p>&nbsp;&nbsp;c. 選擇下面任一種 code 加上</p><p>2. 如果想要讓圖片顯示在內文的文章標題</p><p>&nbsp;&nbsp;a. 打開 ./wp-content/themes/Your_Theme_Name/single.php<br /> &nbsp;&nbsp;b. 找到<pre class="brush: php;">&lt;?php the_title(); ?&gt; </pre><p>&nbsp;&nbsp;c. 選擇下面任一種 code 加上<br /> <span id="more-81"></span><br /> 3. 上面所說的 code</p><p>&nbsp;&nbsp;a. 每篇文章都要顯示圖片</p><pre class="brush: php;">
&lt;img src=&quot;圖片網址&quot; title=&quot;&quot; alt=&quot;&quot;/&gt;
</pre><p>&nbsp;&nbsp;b. 只要最近 24 Hours 所發表的文章才要顯示圖片</p><pre class="brush: php;">&lt;?php
  $time_Post = $post-&gt;post_date;
  $time_Now = date( &quot;Y-m-d H:i:s&quot; );
  $diff = ( strtotime( $time_Now ) - strtotime( $time_Post ) ) / 3600;
  if( $diff &lt; 24 ) {
    echo &quot;&lt;img src='圖片網址' title='24小時內最新發表' alt=''&gt;&quot;;
  }
?&gt;</pre><p>4. 如果不想自己做 new 圖片, 可以用 Google Search 一下。<br /> <img src="http://who-know.com/o/pic/new/new_01.gif" alt="" /> <img src="http://who-know.com/o/pic/new/new_02.gif" alt="" /> <img src="http://who-know.com/o/pic/new/new_03.gif" alt="" /> <img src="http://who-know.com/o/pic/new/new_04.gif" alt="" /> <img src="http://who-know.com/o/pic/new/new_05.gif" alt="" /> <img src="http://who-know.com/o/pic/new/new_06.gif" alt="" /> <img src="http://who-know.com/o/pic/new/new_07.gif" alt="" /> <img src="http://who-know.com/o/pic/new/new_08.gif" alt="" /> <img src="http://who-know.com/o/pic/new/new_09.gif" alt="" /> <img src="http://who-know.com/o/pic/new/new_10.gif" alt="" /> <img src="http://who-know.com/o/pic/new/new_11.gif" alt="" /> <img src="http://who-know.com/o/pic/new/new_12.gif" alt="" /> <img src="http://who-know.com/o/pic/new/new_13.gif" alt="" /> <img src="http://who-know.com/o/pic/new/new_14.gif" alt="" /> <img src="http://who-know.com/o/pic/new/new_15.gif" alt="" /> <img src="http://who-know.com/o/pic/new/new_16.gif" alt="" /> <img src="http://who-know.com/o/pic/new/new_17.gif" alt="" /> <img src="http://who-know.com/o/pic/new/new_18.gif" alt="" /> <img src="http://who-know.com/o/pic/new/new_19.gif" alt="" /> <img src="http://who-know.com/o/pic/new/new_20.gif" alt="" /> <img src="http://who-know.com/o/pic/new/new_21.gif" alt="" /> <img src="http://who-know.com/o/pic/new/new_22.gif" alt="" /> <img src="http://who-know.com/o/pic/new/new_23.gif" alt="" /> <img src="http://who-know.com/o/pic/new/new_24.gif" alt="" /> <img src="http://who-know.com/o/pic/new/new_25.gif" alt="" /> <img src="http://who-know.com/o/pic/new/new_26.gif" alt="" /> <img src="http://who-know.com/o/pic/new/new_27.gif" alt="" /> <img src="http://who-know.com/o/pic/new/new_28.gif" alt="" /></p><p>5. HTML &lt;img&gt; Tag 屬性中 title、alt 的差異<br /> The alt attribute is meant to be used as an alternative text if the image is not available, not as a mouse-over text. To show a mouse-over text on images or image-maps, use the title attribute. From <a href="http://www.w3schools.com/tags/tag_IMG.asp" target="_blank">w3schools</a></p><pre class="brush: xml;">&lt;img src=&quot;圖片網址&quot; title=&quot;滑鼠放在圖片上顯示的文字&quot; alt=&quot;圖片掛掉時顯示的文字&quot;/&gt;</pre><p>6. 囉嗦的我再多寫一點<br /> // 還故意分三小點, 跟老師說我們只考一題, 考卷發下來卻有 20 小題, 有異曲同工之處</p><p>&nbsp;&nbsp;a. 原 :</p><pre class="brush: php;">&lt;h2&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to &lt;?php the_title_attribute(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/h2&gt;</pre><p>&nbsp;&nbsp;b. 改 : // 下面有空一格是為了不要讓文字和圖片你儂我儂, 黏在一起</p><pre class="brush: php;">&lt;h2&gt;&lt;a href=&quot;&lt;?php the_permalink() ?&gt;&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to &lt;?php the_title_attribute(); ?&gt;&quot;&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt; 上面的code 放在這&lt;/h2&gt;</pre><p>&nbsp;&nbsp;c. 您可以 index.php 和 single.php 分別放不同的圖片喔</p> ]]></content:encoded> <wfw:commentRss>http://who-know.com/add-images-to-your-post-title/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>解開WP Theme footer.php被加密 &#8211; Decrypt or Decode Eval Gzinflate Base64_Decode</title><link>http://who-know.com/decrypt-or-decode-eval-gzinflate-base64_decode/</link> <comments>http://who-know.com/decrypt-or-decode-eval-gzinflate-base64_decode/#comments</comments> <pubDate>Thu, 19 Mar 2009 15:49:14 +0000</pubDate> <dc:creator>Eric</dc:creator> <category><![CDATA[Free Resource]]></category> <category><![CDATA[Free Teaching]]></category> <category><![CDATA[Decode]]></category> <category><![CDATA[Decrypt]]></category> <category><![CDATA[Eval Gzinflate Base64_Decode]]></category> <category><![CDATA[footer]]></category> <category><![CDATA[PHP]]></category><guid isPermaLink="false">http://who-know.com/decrypt-or-decode-eval-gzinflate-base64_decode/</guid> <description><![CDATA[00. 請同意閱讀後，不會修改掉Theme(風格)作者的資訊，感謝配合。
01. 有時候好不容易看中意一個 WordPress Theme，不幸的是把 footer.php&#160; 打開來卻發現，它怎麼變的鬼模鬼樣，不是一般熟悉的 PHP、Html 語法。這時如果你需要放廣告在最下面，或者需要放此空間由xxx提供、代管之類的文字，但 footer 又不能更改，且又不想改放在其它位置，這時你可能就會放棄這個好不容易看上的 Theme (風格)，想著或許它不是我的 soulmate，所以又再一次踏上尋覓之路。如果你有上述的問題，且你的 footer 的編碼的方式是類似於 eval gzinflate base64_decode，就請照著下面的步驟來解決吧。
02. 請先連到 Decrypt or Decode eval gzinflate base64_decode
03. 原本footer.php大概是長的這樣&#60;? eval(gzinflate(str_rot13(base64_decode('................')))); ?&#62;04. 但我們只需要把中間的程式碼貼到上方大框框，然後按下Decode即可eval(gzinflate(str_rot13(base64_decode('................'))));05. 神奇的事情就發生了?&#62;        &#60;!-- Sidebar --&#62;
&#60;div class=&#34;sidebar sidebar-right&#34;&#62;[...]]]></description> <content:encoded><![CDATA[<p>00. 請同意閱讀後，不會修改掉Theme(風格)作者的資訊，感謝配合。</p><p>01. 有時候好不容易看中意一個 WordPress Theme，不幸的是把 footer.php&#160; 打開來卻發現，它怎麼變的鬼模鬼樣，不是一般熟悉的 PHP、Html 語法。這時如果你需要放廣告在最下面，或者需要放此空間由xxx提供、代管之類的文字，但 footer 又不能更改，且又不想改放在其它位置，這時你可能就會放棄這個好不容易看上的 Theme (風格)，想著或許它不是我的 soulmate，所以又再一次踏上尋覓之路。如果你有上述的問題，且你的 footer 的編碼的方式是類似於 eval gzinflate base64_decode，就請照著下面的步驟來解決吧。</p><p>02. 請先連到 <a href="http://who-know.com/decrypt.php" target="_blank">Decrypt or Decode eval gzinflate base64_decode</a></p><p>03. 原本footer.php大概是長的這樣</p><div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, &#39;Courier New&#39;, courier, monospace; height: 39px; background-color: #f4f4f4"><div style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none"><span style="color: #0000ff">&lt;?</span> eval(gzinflate(str_rot13(base64_decode('................')))); ?<span style="color: #0000ff">&gt;</span></pre></p></div></div><p>04. 但我們只需要把中間的程式碼貼到上方大框框，然後按下Decode即可</p><div style="border-right: gray 1px solid; padding-right: 4px; border-top: gray 1px solid; padding-left: 4px; font-size: 8pt; padding-bottom: 4px; margin: 20px 0px 10px; overflow: auto; border-left: gray 1px solid; width: 97.5%; cursor: text; max-height: 200px; line-height: 12pt; padding-top: 4px; border-bottom: gray 1px solid; font-family: consolas, &#39;Courier New&#39;, courier, monospace; height: 48px; background-color: #f4f4f4"><div style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; border-bottom-style: none"><pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; width: 100%; color: black; border-top-style: none; line-height: 12pt; padding-top: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-right-style: none; border-left-style: none; background-color: white; border-bottom-style: none">eval(gzinflate(str_rot13(base64_decode('................'))));</pre></p></div></div><p>05. 神奇的事情就發生了</p><pre class="brush: php;">
?&gt;        &lt;!-- Sidebar --&gt;
        &lt;div class=&quot;sidebar sidebar-right&quot;&gt;

            &lt;h3&gt;Categories&lt;/h3&gt;
            &lt;ul&gt;
                &lt;?php noXD_list_categories('title_li='); ?&gt;
            &lt;/ul&gt;

            &lt;h3&gt;Blogroll&lt;/h3&gt;
            &lt;ul&gt;
                &lt;?php noXD_list_bookmarks('categorize=0&amp;title_li='); ?&gt;
            &lt;/ul&gt;

            &lt;?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar(2) ) : ?&gt;

            &lt;?php endif; ?&gt;

        &lt;/div&gt;
        &lt;!-- Sidebar --&gt;

        &lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;

    &lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
    &lt;!-- /Main --&gt;

    &lt;!-- Footer --&gt;
    &lt;div id=&quot;footer&quot;&gt;

        &lt;!-- Copyright --&gt;
        &lt;div id=&quot;copyright&quot;&gt;
            &lt;br /&gt;(c)Copyrighted &lt;?php bloginfo('name'); ?&gt;, All Rights Reserved.&lt;br /&gt;
Designed by: &lt;a href=&quot;http://www.reikimadrid.com&quot;&gt;Reiki&lt;/a&gt;
        &lt;/div&gt;
        &lt;!-- /Copyright --&gt;

    &lt;/div&gt;
    &lt;!-- Footer --&gt;

&lt;/div&gt;
&lt;!-- /Page --&gt;

&lt;?php noXD_footer(); ?&gt;

&lt;/body&gt;

&lt;/html&gt;&lt;?
</pre><p><span id="more-58"></span><p>06. 如果 <a href="http://who-know.com/decrypt.php" target="_blank">Decrypt or Decode eval gzinflate base64_decode</a> 連不上去，請複製下面的PHP Code，檔名存成decrypt.php</p><p><pre class="brush: php;">
&lt;?php
    echo &quot;\nDECODE nested eval(gzinflate()) by DEBO Jurgen &lt;jurgen@person.be&gt;\n\n&quot;; 

    echo &quot;1. Reading coded.txt\n&quot;;
    $fp1      = fopen (&quot;coded.txt&quot;, &quot;r&quot;);
    $contents = fread ($fp1, filesize (&quot;coded.txt&quot;));
    fclose($fp1); 

    echo &quot;2. Decoding\n&quot;;
    while (preg_match(&quot;/eval\(gzinflate/&quot;,$contents)) {
        $contents=preg_replace(&quot;/&lt;\?|\?&gt;/&quot;, &quot;&quot;, $contents);
        eval(preg_replace(&quot;/eval/&quot;, &quot;\$contents=&quot;, $contents));
    } 

    echo &quot;3. Writing decoded.txt\n&quot;;
    $fp2 = fopen(&quot;decoded.txt&quot;,&quot;w&quot;);
    fwrite($fp2, trim($contents));
    fclose($fp2);
?&gt;
</pre></p><p>07. 然後新增兩個空白的文字檔案，名稱分別為coded.txt和decoded.txt。把剛剛要放到大框框的那串語法貼到裡面coded.txt；decoded.txt裡面的內容則是保持空白即可。</p><p>08. 然後把這三個檔案上傳到有支援PHP的空間，或者自己用AppServ建個PHP環境，如果你的主機不是Windows，請把decoded.txt設成666 (CHMOD)。</p><p>08. 最後打開 http://你的網址/如果有放在資料夾下/decrypt.php，然後把經過解碼後的decoded.txt下載下來就是你的footer.php未經編碼前的樣子了。</p><p>//&#160; 有的Theme從後台編輯，就可以看到正常的PHP程式碼<br /> //&#160; 此方法只適合解 eval(gzinflate(str_rot13(base64_decode('code'))));<br /> //&#160; 再補幾個也是提供相關服務的網站吧<br /> a.) <a href="http://who-know.com/byteRunDecoder.php" target="_blank">Decrypt or Decode PHP files encoded with $_F=__FILE__;$_X= ByteRun Encoding</a><br /> b.) <a href="http://www.tareeinternet.com/scripts/decrypt.php" target="_blank">Eval Gzinflate Base64_Decode PHP Decoder</a></p><p>Ref :<br /> 01. <a href="http://www.tareeinternet.com/forum/knowledgebase/274-decoding-eval-gzinflate-base64_decode.html" target="_blank">Decoding Eval Gzinflate Base64_Decode</a><br /> 02. <a href="http://www.expertsforge.com/Web-Development/php-tool-free-code-decode-eval-gzinflate-base64decode-231.asp" target="_blank">PHP Tool Free Code Decode Eval Gzinflate Base64decode</a><br /> 03. <a href="http://tw.php.net/manual/en/function.eval.php#59862" target="_blank">PHP Function Eval</a></p> ]]></content:encoded> <wfw:commentRss>http://who-know.com/decrypt-or-decode-eval-gzinflate-base64_decode/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> </channel> </rss>