Including PHP code on page; not working?
Posted: Sun Mar 19, 2006 8:10 pm
Hello,
I'm trying to include a PHP file on a CMS page, and according to the page preview, it works great.
However, when I finally submit the page, it'll only display the code between the {php} and {/php} tags.
For example:
In the page content: {php}include('gbook_view.php');{/php}
Results in: include('gbook_view.php');
Instead if including gbook_view.php, as the preview does.
Did I miss anything, or is this a bug? If so, are there any workarounds known?
I'm trying to include a PHP file on a CMS page, and according to the page preview, it works great.
However, when I finally submit the page, it'll only display the code between the {php} and {/php} tags.
For example:
In the page content: {php}include('gbook_view.php');{/php}
Results in: include('gbook_view.php');
Instead if including gbook_view.php, as the preview does.
Did I miss anything, or is this a bug? If so, are there any workarounds known?