GetSimple Support Forum

Full Version: Exec PHP not working
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi

Really great simple xml based CMS. Top.

I'm having problems using the plugin Exec PHP by Chris Cagle: http://www.cagintranet.com/

Can someone tell me how to use it?

I've copied it into the plugins folder: exec-php.php and it shows up in admin of GS.

The o try on a page ex.
<?php
print 'hi';
?>

But nothing happens... Plz
Are you writing it in CKEditors code view or in the visual editor? I haven’t tested it but it might only work when you enter the PHP code in code view.
Zegnåt Wrote:Are you writing it in CKEditors code view or in the visual editor? I haven’t tested it but it might only work when you enter the PHP code in code view.

I choose editor and then html source and paste ut in but not working.
What to do?
whats your version of GS?
I'm using 2.01
Looks like it's CKeditor visual mode that is stripping php code.

If you select source mode, insert the php code, and then enter the visual mode again, the code disappears (before even saving the page).
Carlos Wrote:Looks like it's CKeditor visual mode that is stripping php code.

If you select source mode, insert the php code, and then enter the visual mode again, the code disappears (before even saving the page).

no surprise there... The plugin does nothing with ckedior to allow it to not strip out the php. Sorry
An alternative plugin, if you don't mind putting your php code into components instead of page content itself, is medialution-component-in-site:
http://get-simple.info/forum/viewtopic.php?id=732

(download updated plugin in post #3:
http://get-simple.info/forum/viewtopic.p...4534#p4534 )