PHP Text Widget modifies the standard Text Widget of WordPress making it able to execute PHP code. The normal behaviour of the text widget is preserved so it can be activated without fear. That let the blog owner to control the text displayed with PHP, eg. showing different ads on different posts, pages, categories and so on.
If you are still struggling on how to insert PHP Codes inside particular blog post, page or a widget sidebar for execution; the following tutorial is for you.
Anywhere in your post/pages where you want to execute a PHP Codes, insert <phpcode> before your php codes and </phpcode> your php codes.
echo “Current date and time: “;
echo date(“l dS of F Y h:i:s A”);
If you are running a blog with multiple users, you need to determine who can run this plug-in. Alter the settings in your Administration Menu. Options -> PHPExec
This plug-in work like a normal text widget except that it allows execution of PHP Codes. You can create up to 9 instances of this widget.