Introduction

Core Enhancements

DirectPHP - a plugin that allows direct embedding of PHP commands right inside Joomla content page!

  • Favourite
  • Report

Available for all Joomla versions: Joomla 1.0.x, native 1.5.x, 1.6.x, 1.7.x, 2.5.x and 3.0.x!

VIP: Don't forget to set the Filter Type to "No Filtering" so that you can enter PHP codes in a Joomla 1.6/1.7/2.5/3.0 articles.

Latest Update

v3.0 (for Joomla 3.0)
Released March 21, 2013

v2.5 (for Joomla 2.5)
Released January 25, 2012

v1.7 (for Joomla 1.7)
Released October 10, 2011

Native version of DirectPHP for Joomla 1.7!

Latest version: 1.6 (for Joomla 1.6)
Released Feb 21, 2011
Native version of DirectPHP for Joomla 1.6!

Latest version: 1.06 (for Joomla 1.0) and 1.56 (for Joomla 1.5).
Added one more parameter "Using No Editor". If you're not using any editor when editing content articles, select 'yes' for this parameter. This will allow you to freely use any HTML tags (such as or ).

Latest version: 1.05 (for Joomla 1.0) and 1.55 (for Joomla 1.5).
Main update: Thanks to Salvatore who informed me about some "mysterious" double-byte characters that get inserted into the DirectPHP code by the content editor of some of the non-English Joomla. These double-byte characters will cause error when processing the PHP commands with eval. Have fixed this in this version.

Latest version: 1.04 (for Joomla 1.0) and 1.54 (for Joomla 1.5).
Main update: now works with PHP4!

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 bloc

100
100
Functionality

Working for many years with this great plugin. Never let me down. Big thanks to kksou for his efforts!

100
Ease of use

Very easy. Just place the tags and it works.

100
Support

Didn't need it. Its simple.

100
Documentation

Extensive. Great for beginners. You must have knowledge of PHP, off course.

I used this to: All my Joomla websites
100
100
Functionality

I tested this with the latest version of Joomla 3.7.2 and it is still working great. Used it together with the CodeMirror Editor

100
Ease of use

Just install, enable and you are ready to insert php code directly to any article.

60
Functionality

Does not work within modules (custom html) but works in articles. Joomla 3.3.6. Also more people having the same problems (in your site)

100
Ease of use

Real easy out of the box

100
Documentation
I used this to: Would be great if the module problem will be fixed, coz its way better to use for php then sourcerer because of its lightweight. Thanks
100

Been using DirectPHP for so long, I can't remember why I haven't reviewed it till now. It has always worked excellently for my custom code needs. Used to use Jumi, but DirectPHP beats that hands down since you can type your PHP code into Joomla! articles directly. Difficulty level is minimal, instructions are clear and concise, and the steps do not take up to 5 minutes to get you started. I recommend!

100

Great extension


Posted on 06 August 2014

Great product. I use Joomla in a unique way and without being able to put PHP direct into the article I could not use Joomla. Thanks

I've used other php plugins such as Juni. They work but I always thought it would be nice just to type the php code into Joomla.



I needed to add some php code today and decided to do a quick search and came across this plugin. I was looking for the crazy brackets or special hash tags that it took to make it work and to my surprise there were none. Simply type the php code into you content, WITH YOUR FAVORITE EDITOR TURNED ON!

100

Great plugin


Posted on 20 February 2014

DirectPHP is turning into one of my most used plugins. This functionality should be part of core Joomla. Excellent.

80

Only for basic php


Posted on 05 January 2014

Is a good extension but I tried to connect to a remote database using php and it doesn't work (I tested the code outside joomla and it works), so I guess is not suitable for "more complicated" php. For some basic one it worked perfectly. Thanks!

100

Great!


Posted on 31 July 2013

This plugin was exactly what I was looking for!



Thank you!!

100

Perfect!


Posted on 29 March 2013

I was looking for a replacement for Sourcerer as the plugin kept showing up in Joomla's error log and it was quite expensive for the Pro version. After downloading this, enabling the plugin, I was able to add the PHP date field to Footer (as in Copyright 2013). It also lets you encode forms so you can have a newsletter signup form for say constant contact. Haven't tested it on JS (for google adsense) but I don't think it will be an issue.



Just be sure to insert your code by clicking the HTML editor button (in TinyMCE and JCE) and placing it there. Click save and Voila! Great plugin, great support, and it's free!

googleMaps by kksou googleMaps by kksou
Free

googleMaps by kksou

By kksou
Maps & Locations
This plugin allows you to include one or more google maps right inside your content item or article. This is a very light-weight and easy-to-use plugin for displaying googleMaps right inside your Joomla article. You can use this to easily add a map to your company address. Unique features: * uses Google Maps API V3 * You can embed more than one Google Maps within an article * Each G...
googleDirections googleDirections
Free

googleDirections

By kksou
Maps & Locations
This is an easy-to-use and light-weight plugin that allows you to include one or more driving or walking directions provided by Google Maps right inside your content item or article. If you need to display driving or walking directions to your company, or from one place to another, this is the plugin. If you only want to display a Google Map, use the googleMaps plugin: http://extensions.joomla.o...
To Here for googleDirections To Here for googleDirections
Free

To Here for googleDirections

By kksou
Extensions Specific Non-sorted
This plugin is an easy-to-use and light-weight plugin for displaying Google directions from user-specified address to your designated place (e.g. your company or office). You specify a designated place to be the destination, and let the user enter the address he or she is coming from. Google will then provide the driving or walking directions from the user-specified address to your designated pla...
googleSearch (CSE) component googleSearch (CSE) component
Free

googleSearch (CSE) component

By kksou
Web Search
This component allows you to add Google's Custom Search Engine (CSE) Search to your Joomla site using the latest Google CSE API. The search results are displayed right inside your Joomla page! No more popup page. No more diversion to other pages. The googleSearch (CSE) Module Note that there is an accompanying googleSearch (CSE) Module that allows you to add a Google search form as a module. T...

DirectPHP

Version:
3.0
Developer:
kksou
Last updated:
Jan 08 2015
Date added:
Mar 27 2008
License:
GPLv2 or later
Type:
Free download
Includes:
p
Compatibility:
3
Download

This extension does NOT implement the Joomla! Update System

Score:


Write a review