Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Exec-PHP
#1
Hi,

I have some trouble using exec-php: I installed exec-php with my GetSimple 3.1 and just tried to execute some test-code:

<?php
echo("test");
?>

I posted this code directly into the xml-file to avoid problems with the editor.

When trying to display the page, "test" was missing, but the rest of the page-content (statical html) was displayed properly.

I already searched the Internet for hours, not finding any solution, so I'm requesting help here.


Thanks for your answers in advance!


MaxK

EDIT:

I just noticed, that the whole code (including <?php) is outputted without being executed. Firefox hided this....
Reply
#2
Dont use exec-php plugin it doesn't work.

Instead use dynpages plugin with components.

so add
{% my_component %} to your page.

and create a component called my_component and add your php in there.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply




Users browsing this thread: 1 Guest(s)