I have been trying to use include() to include a php page in one of the template file (category.html). But I am getting fetal errors ( member function on a non-object). Since the template is being parsed (by page.inc.php) and included (by index.php), doesn't that contribute to the fetality of the include() function?
Jun 12, 2002, 11:36 PM
Veteran / Moderator (17298 posts)
Jun 12, 2002, 11:36 PM
Post #2 of 4
Views: 1858
I use
<? include("banner.php"); ?>
fine
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
<? include("banner.php"); ?>
fine
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work!
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500)
Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Compare our different Plugin packages *new* Free CSS Templates
Jun 13, 2002, 4:35 PM
Staff / Moderator (4066 posts)
Jun 13, 2002, 4:35 PM
Post #4 of 4
Views: 1819
You should be able to put any valid PHP code into the php templates. There really isn't any actual parsing done by Links SQL, but all the variables are just imported into the global scope, then the template is included. If you put an <?include('/path/to/file.php')?> in the template, then PHP will do all the work.
Adrian
Adrian

