Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Global for PHP includes on dynamic pages?

Quote Reply
Global for PHP includes on dynamic pages?
I have php includes in the templates, for example: This works fine for static pages. I understand that I need a global for the header to work on dynamic pages. So my question is, how do I write a global or find someone to write one?

Thanks,
--Jo

Last edited by:

iplay: Nov 2, 2013, 2:28 AM
Quote Reply
Re: [iplay] Global for PHP includes on dynamic pages? In reply to
You should be able to do it with something like:

run_php
Code:
sub {
return `$_[0]`;
}

...or some servers only work with:

Code:
sub {
return system($_[0]);
}

Call with:

Code:
<%run_php("php /path/to/script.php")%>

Hope that helps

Cheers

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!