Welcome to Geeklog, Anonymous Friday, May 24 2024 @ 04:10 am EDT

Geeklog Forums

$_CONF variables in staticpages


Can you pass a $_CONF variable to a static page? If so, how? I want to display an image on a static page and don't want to hard code the actual URL to it.

Status: offline


Forum User
Regular Poster
Registered: 08/13/03
Posts: 107
The $_CONF variable is avaliable in staticpages, all you need to do is import the global variable into your php code.

Use somethig like:
Text Formatted Code

global $_CONF;
echo '<img src="'.$_CONF['site_url'].'/images/foo.png">';




All times are EDT. The time is now 04:10 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content