WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't 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.

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

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.)

Tags: , , , ,

Requires: 1.5.0 or higher
Compatible up to: 2.2.1
Last Updated: 2007-10-23
Downloads: 28,924

Ratings

3 stars
3.5 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,2,2
100,1,1
75,8,6
50,2,1
100,6,6
0,1,0
100,2,2
0,1,0
100,1,1
0,1,0