DirectPHP - a plugin that allows direct embedding of PHP commands right inside Joomla content page!
Latest Update
=============
Latest version: 1.04 (for Joomla 1.0) and 1.54 (for Joomla 1.5).
Main update: now works with PHP4!
Related Plugins
===============
Hide DirectPHP for RSS Feed: This plugin helps you hide DirectPHP commands in your RSS feed. More information here:
http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,4946/Itemid,35/
Background
==========
Like many other PHP programmers who use Joomla, all I wanted is a simple wish: the ability to include PHP in Joomla content page.
I did some research. Looks like currently the best plugin out there with good user feedback is Jumi. I tried. It works. But something is still missing. The problem I have with Jumi is that it only allows you to call or include another .php file. It doesn't allow you to include PHP commands right inside the content page.
What this means is that to run some PHP commands, you have to put them in an intermediate PHP file. You have to have this intermediate file even if all you want is to display the current date and time with "echo date('Y-m-d H:i:s')"! Imagine having hundreds of dynamic content pages. The intermediate files accumulate more and more and become difficult to maintain.
This is the reason I developed DirectPHP - a plugin that allows direct embedding of PHP commands right inside Joomla content page!
Key Features
============
* You can write direct PHP statements right inside the content page using the standard the standard php construct.
* You can freely intermix static contents with php commands.
* You can edit the php code right inside the default TinyMCE WYSIWYG Editor!
* You can easily serve different contents for registered and non-registered members.
* You can use 'include' or 'require' to load in your favorite PHP library and call any of the functions inside the library.
* Ability to block potentially "risky" commands, e.g. system, fopen, unlink, rmdir, etc. You can add and edit this list of "risky" yourself in the property page.
Note: This plugin can be used to create Joomla modules easily too! I've written a tutorial on how to create Joomla modules using this plugin in the homepage.
WARNING: As with any other plugins that allow you to embed PHP, please be fully aware of the imminent security risk it might pose. If you allow registered users to add or edit their own contents, you might NOT want to install such a plugin. It's too dangerous. But if you're the only one maintaining your Joomla site, you will be amazed how easy it is to create dynamic content with this simple plugin.
Other Related Plugins
=====================
GoogleSearch component/module
http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,4903/Itemid,35/
This component allows you to add Google Adsense Search to your Joomla site. The search results are displayed RIGHT INSIDE your Joomla page!
GoogleAds
http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,5022/Itemid,35/
This plugin allows you to display Google Ads right inside your content pages.
Include Content Item Plugin
http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,4809/Itemid,35/
This plugin allows you to insert or include one content item into another content item.
Include Content Item Module
http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,5534/Itemid,35/
This module allows you to include content items into your module.
Google Image Search: This Google Image Search component / module pair allows you to add Google Image Search to your Joomla site. The search results are displayed right inside your Joomla page!
http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,5654/Itemid,35/
Google News Search
http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,5686/Itemid,35/
The Google News Search component / module pair allows you to add Google News Search to your Joomla site. The search results are displayed right inside your Joomla page!
Wikipedia Search
http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,5705/Itemid,35/
This Wikipedia Search component / module pair allows you to add Wikipedia Search to your Joomla site. The search results are displayed right inside your Joomla page!
Google Video Search
http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,5733/Itemid,35/
This Google Video Search component / module pair allows you to add Google Video Search to your Joomla site.
Google Book Search
http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,5787/Itemid,35/
This Google Book Search component / module pair allows you to add Google Book Search to your Joomla site.
Google Currency Converter - AJAX version
http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,5795/Itemid,35/
This module allows you to add the Google Currency Converter (from Google Finance) in a module position. AJAX is used, so no reloading of pages is required! Since this is a standard Joomla module, you can easily include this module into a content item or article with the use of {loadposition}.
Yahoo Currency Converter - AJAX version
http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,5815/Itemid,35/
This module allows you to add the Yahoo Currency Converter (from Yahoo Finance) in a module position. AJAX is used, so no reloading of pages is required! Since this is a standard Joomla module, you can easily include this module into a content item or article with the use of {loadposition}.
Auto Template Switcher
http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,5862/Itemid,35/
This module allows you to automatically switch the joomla template depending on the type of browser the user is using. For example, you can server different site template for Mozilla and iPhone users.