GetSimple Support Forum

Full Version: PHP in posts
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've got a theory.

Anything is possible... I think.

Anyway, a post cannot have php embedded in it. I've tried it, and I knew it wouldn't work.
However, I can create a special character markup like, #*#$FUNCTION#*#

I'm curious if PHP or maybe JS could do a simple "find and replace". You could put the code in a component and include the component somewhere above the post.

Better example.

COMPONENT
Code:
<?php
$yeah = echo ("hello world");
?>

XML FILE
Code:
I just want to say #*#$yeah#*#

OUTPUT
Code:
I just want to say hello world