Inline PHP

The plugin can execute php string in posts/pages, and display the output as the contents of posts/pages.(PHP 5 or above prefered, may work on PHP 4, b

Author:kukukuan (profile at wordpress.org)
WordPress version required:1.5.0
WordPress version tested:2.2.1
Plugin version:1.2.2
Added to WordPress repository:17-04-2007
Last updated:23-10-2007
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:http://blog.codexpress.cn/php/wordpress-plugi...
Total downloads:34 785
Active installs:1 000+
plugin download
Click to start download

The plugin can execute php string in posts/pages, and display the output as the contents of posts/pages. Just quote what you want to execute in <exec>...</exec> or [exec]...[/exec] tag.

Here is a simple demo: echo 'This is a test'; OR [exec] echo 'This is a test'; [/exec]

An advanced demo may look like this:

   <exec>
       $filestr = file_get_contents('http://www.seocompany.ca/pagerank/page-rank-update-list.html');
       if (preg_match('/<p>.*<\/p>/ums', $filestr, $matches)){
           echo str_replace("<p><a href=\"#page-rank-update-list-history\">Top of Page Rank Update List History</a></p>", "", str_replace("<table width=\"65%\">", "<table width=\"100%\">", $matches[0]));
       }
   </exec>

Here is a post to show PageRank Export History with the code above. HERE (Notice: I also add some CSS style to make the output nicer.)