Warning: Illegal string offset 'output_key' in /home/taoworks/public_html/wp-includes/nav-menu.php on line 604

Warning: Illegal string offset 'output_key' in /home/taoworks/public_html/wp-includes/nav-menu.php on line 604

Warning: Illegal string offset 'output_key' in /home/taoworks/public_html/wp-includes/nav-menu.php on line 604

Warning: Illegal string offset 'output_key' in /home/taoworks/public_html/wp-includes/nav-menu.php on line 604

Warning: Illegal string offset 'output_key' in /home/taoworks/public_html/wp-includes/nav-menu.php on line 604

陶●工作室

站長指南-Web hosting及WordPress設定


Warning: Illegal string offset 'output_key' in /home/taoworks/public_html/wp-includes/nav-menu.php on line 604

Warning: Illegal string offset 'output_key' in /home/taoworks/public_html/wp-includes/nav-menu.php on line 604

Warning: Illegal string offset 'output_key' in /home/taoworks/public_html/wp-includes/nav-menu.php on line 604

Warning: Illegal string offset 'output_key' in /home/taoworks/public_html/wp-includes/nav-menu.php on line 604

Warning: Illegal string offset 'output_key' in /home/taoworks/public_html/wp-includes/nav-menu.php on line 604
Posted by 陶 On 3 / 1 / 2012

想在Page行PHP,又不想iframe套入?

可以安裝PHP Exec 的Plugin。

  1. 先下載 phpexec.txt 並另存為 phpexec.php
  2. 上載到 wp-content/plugins directory
  3. 到控制台->外掛->installed plugin (安裝外掛)-> 選啟用

使用時,要特別在前後加上<phpcode>及</phpcode>
例子:

<phpcode>
<?php echo "Current date and time: "; echo date("l dS of F Y h:i:s A"); ?> 
</phpcode>

參考:http://priyadi.net/archives/2005/03/02/wordpress-php-exec-plugin/

如覺下載、上載並不方便,可安裝控制台->外掛->installed plugin (安裝外掛)-> 搜尋exec PHP->安裝-> 啟用
這個是受 Exec-PHP 啟發而寫的,個人覺得是比較好用!

相關文章

You must be logged in to post a comment.