GetSimple Support Forum
Exec PHP not working - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Plugins (http://get-simple.info/forums/forumdisplay.php?fid=13)
+--- Thread: Exec PHP not working (/showthread.php?tid=748)



Exec PHP not working - jb - 2010-05-27

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


Exec PHP not working - Zegnåt - 2010-05-27

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.


Exec PHP not working - jb - 2010-05-29

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?


Exec PHP not working - ccagle8 - 2010-05-29

whats your version of GS?


Exec PHP not working - jb - 2010-05-30

I'm using 2.01


Exec PHP not working - Carlos - 2010-05-31

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).


Exec PHP not working - ccagle8 - 2010-05-31

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


Exec PHP not working - Carlos - 2010-05-31

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.php?pid=4534#p4534 )