=== Inline PHP === Contributors: kukukuan Donate link: Tags: post, pages, posts, code, php Requires at least: 1.5.0 Tested up to: 2.2.1 Stable tag: 1.2.1 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, but not tested) == Description == 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 `...` 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: ` $filestr = file_get_contents('http://www.seocompany.ca/pagerank/page-rank-update-list.html'); if (preg_match('/

.*<\/p>/ums', $filestr, $matches)){ echo str_replace("

Top of Page Rank Update List History

", "", str_replace("", "
", $matches[0])); } ` Here is a post to show PageRank Export History with the code above. [HERE](http://blog.gmap2.net/2007/04/10/page-rank-export-list-history/ "Page Rank Export List History") (Notice: I also add some CSS style to make the output nicer.) == Installation == 1. Upload `inline-php.php` to the `/wp-content/plugins/` directory 1. Activate the plugin through the 'Plugins' menu in WordPress 1. Use `...` or `[exec]...[/exec]` to quote php code that you wish to execute in your posts/pages == Screenshots == == Frequently Asked Questions == 1. Why the plugin failed to work? First, check your php version. This plugin requires php 5. Version 1.1 may work under php4, but has not been tested yet. Then, check your php code and make sure it is correct. If problems still exist, visit [Plugin Homepage](http://blog.codexpress.cn/php/wordpress-plugin-inline-php/ "Plugin Homepage") to report a bug. 1. I just wish to display `...` rather than execute any code, what should I do? Use `...` instead; it won't execute anything but display `...` and text in it.