Add PHP Plugin

This Bot/Plugin makes it possible to integrate any PHP Scriptes into a content item/ Article. The PHP Script must be below the Joomla root directory. You should switch off the print and pdf representation possibility. How to use: {rdaddphp file=rel_path_to_the_file_with_filename} Example: joomla install directory: /var/www/joomla PHP-Files are in the directory: /var/www/joomla/myphpfiles Name of the file to include my_file.php Then you have to use it like this: {rdaddphp file=myphpfiles/my_file.php} We have versions for Joomla 1.0.x http://www.run-digital.com/download/mambots.html and for Joomla 1.5 http://www.run-digital.com/download/plugins.html

Report

bybjverde on December 28, 2008
Comments in two languages. English after Portuguese.

I recommend.

Plugin slightly below the plugin IncludePHP.
Synthase easy: (rdaddphp file = path / arquivo.php)
Generating PHP has a small problem, not only is the content appears to tag.
byenyab on December 10, 2008
As a newbie it was very easy to write the hello world application on a php file and get it called in an article. i will defintly recommend.

I have now a question, I want to send a search request with a form (POST a php file that digs a db) and get the reply. I was able to do this, however, the result is displayed on a separate page and not in the template.

How can I modify this any ideas ?
cheers
Enya
bycom2 on August 22, 2007
As PHP can generate dynamice content you need to turn off Joomla's caching. I included some PHP code that retrieves information from another database, with paging and a search box. With caching Joomla enabled you will only see the first page and no paging nor search will make difference in that.

I will report this as a bug to the authors, but I don't know if Joomla allows deactivating cache for one specifice page.
byrsd on May 11, 2007
As no one seems to realize this. I will the one to point it out.

This mambot can be a huge security risk to the installation of a Joomla site.

Just install this mambot if you truly trust all authors of your site and they understand the security problem behind this.

Including a PHP script in a content means that the script will have access to everything Joomla has. Including passwords (changing then at least) and even Erasing the whole installation/database.

The point of having the php script inside the Joomla root dir is not a big deal. It can be easily uploaded with some HTML editors, the backend or even using a broken script from some 3rd part component.
I have been working with this mambot, and have not had any output from it. I have posted in the mambot help forum for help on the subject, but no one will even bother to look into it for me. This mambot will not produce any output for me.
byTirrawarra on February 2, 2007
AddPHP is COOL and what Ive been searching for!

It took a while to work - but I hadnt published it im Mambots - thanks "LATTE"

can it be adapted to call external files?
bylatte on January 20, 2007
This is my second day playing with my installed Jooma. So, I really need things spelled out for me. A couple of thing I noticed.

1. The Joomla instructions on how to upload this mambot/plugin were almost correct. The folder that I ended up putting these files in was the path listed under the Joomla admin panel > Installers > Mambots. When you get to this page, you will see a field called "Install from directory." This is the path I put my 2 mambot files in. The Joomla help had this path name slighly different.

2. The second thing I missed at first was that I needed to the Joomla admin panel > Mambots > Site Mambots and click on the Published icon. Only after I did that did the code work. I'm sure these are basics, but being new, this additional information would have been helpful. I hope this helps others...

Oh - and it works like magic! I'd be lost without my php includes.
This plugin works perfectly. Simple and straightforward.

If you need to include a bit of php in a content page (or lots of content pages), this is a fantastic, elegant solution.

My only question -- is there any way to pass a value to the php script being called? If not, could that be added in a future version?
Okay, I am know expert...far from it, but I do know what I want. I wanted a bot (Plugin, whatever they are called) that would allow me to put MODS where I want them to be. When I saw this I thought - hey, not give it a try. BAM --- it worked magic. I use this to put mods in my content giving me incredible control of each page layout. Now, is there anyway to get more users??? 32 users is just not enough... lol ...thank you Robert Deutz (RUN DIGITAL) for the freedom you just gave me...
byturboz on October 21, 2006
smart, easy and powerfull.

remember you have to install it as a Mambot!
bydavidwhthomas on October 4, 2006
Just what I was looking for. Does the job simply and effectively.

To clarify the usage syntax:

the php file to include must be within your joomla installation (i.e contained within your joomla root folder)

to include a php file, add the following plugin tag in your content editor:

{rdaddphp file=folder/file.php}

where 'folder' is the folder containing your php file and 'file.php' is your script to include.

Thanks for the great work!
Be nice to have some english instructions for those of us limited to English. But I've figured out to use place the following in the content:

{rdaddphp file=realPathToTheFileIncludingFilename.php}

Otherwise still testing. Thanks, DANIEL...
Thanks.