Gossamer Forum
Home : Products : Gossamer Links : PHP Front End :

Problem with include

Quote Reply
Problem with include
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?
Quote Reply
Re: [Robbie] Problem with include In reply to
I use

<? include("banner.php"); ?>

fine Unimpressed

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Problem with include In reply to
Of course it works when your php doesn't contain any parsing mechnism. But when it does, it doesn't work.
Quote Reply
Re: [Robbie] Problem with include In reply to
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