PDA

View Full Version : simple PHP include w/ Gamma


Kihon Kata
12-31-2003, 03:48 PM
I am running Gamma 3.0 here (http://www.makeuptalk.com/forums) and I am trying to insert this code into my FORUMHOME template but it does not grab the data from my included file


<?php

print "Latest Reviews come here";
include ("../reviews/latestReviews.php");

?>



Any ideas on how to make this work with vB?

Thanks in advance

x3n0
01-09-2004, 01:02 AM
I'm trying to do something similar. I know you can't include PHP code into an HTML template. This has to be hacked into one of the .php scripts that calls the forumhome template. Index.php would be my guess. I know you need to assign the output of your external PHP file to a variable then you call the variable from your template like VB does.