Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
Vue Injector 3.3
Spectrum Analyzer pro Live 2019
Devart Excel Add-in for HubSpot 2.1
RentALLScript - Airbnb clone 2.2
SuiteCRM Theme Customization 7.11.6
iScripts NetMenus 3.1
iScripts EasyIndex 2.2
iScripts EasySnaps 2.0
Australia MyPost shipping For Magento 2 1.0.0
Australia Post eParcel For Magento 1.1.1
Source Control for SQL Server 2.0
Answers phpSoftPro 3.12
Exlcart 2.0
School College ERP 1.3.2
White-label Grocery Delivery App Solution 2.0
Top Code
iScripts EasySnaps 1
iScripts EasyIndex 1
iScripts NetMenus 2.0
ATN Site Builder 3.0
ATN Resume Finder 2.0
Azizi search engine script PHP 4.1.10
PHP MLM Software 2.0.1
GnuWin64 64
Single Leg MLM 1.2.1
phpEnter 5.1.
Australia Post eParcel For Magento 1.1.1
IcrediBB Bulletin Board System 1.0
Invoice Manager by PHPJabbers 3.0
Deals and Discounts Website Script 1.0.2
Extreme Injector 3.7
Top Rated
phpEnter 5.1.
Quick Maps For Dynamics CRM 3.1
Single Leg MLM 1.2.1
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Deals and Discounts Website Script 1.0.2
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
DirectPHP 1.06
File ID: 97385






DirectPHP 1.06
Download DirectPHP 1.06http://www.kksou.comReport Error Link
License: Freeware
File Size: 10.0 KB
Downloads: 8
Submit Rating:
DirectPHP 1.06 Description
Description: DirectPHP - a plugin that allows direct embedding of PHP commands right inside Joomla content page!

Note: If you're using DirectPHP with Joomla 1.5.8 and above, please refer to the post by Teezone for some useful tips.
http://www.kksou.com/php-gtk2/DirectPHP/1201-ReDirectphp-is-not-work-in-TinyMCE-WYSIWYG-Editor/Page-2.php?limit=10&limitstart=10#1201

Latest Update
=============
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 block potentially "risky" commands, e.g. system, fopen, unlink, rmdir, etc. You can add and edit this list of commands-to-block yourself.

License: Freeware

Related: Joomla, Content, commands, inside, directphp, Include, intermediate, Direct, Version, Plugin, doublebyte, Editor, Parameter, Main, freely, Library

O/S:BSD, Linux, Solaris, Mac OS X

File Size: 10.0 KB

Downloads: 8



More Similar Code

This plugin allows you to include php commands inside the Section/Category description.

The DirectPHP plugin
http://extensions.joomla.org/component/option,com_mtree/task,viewlink/link_id,4470/Itemid,35/
which I released in March 2008 allows you to include PHP commands in content items only.

With this plugin, you can now include PHP commands right inside the Section/Category description.

Please click...

User Review for DirectPHP
- required fields
     

Please enter text on the image