Injecting PHP code into a Page
-
How can i add PHP code into a Page content (not template)?
Point is, i have downloaded a rating script, this script can be called like:<?
$rater_id=1;
$rater_item_name=’Item 1′;
include(“rater.php”);
?>I can call it from a template without a problem, but i want to be able to rate a Page. So i thought in the Page content i put the above code and change the vars as needed.
However all php code is shown as text instead of executed.And if this is not possible, can i put it in the template and how can i make the 2 vars unique for every called Page?
Thanks for any help..
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Injecting PHP code into a Page’ is closed to new replies.