Hi,
I seem to be having some problems with includes and the passing of variables into those includes :-(
The code I'm trying to use thats not working is:
<?php
session_start();
global $page;
$page["PAGE_TITLE"] = "Welcome";
$page["CSS_LINK"]= "http://resources.domain.com/css/standard.css";
$page["LEFT_STRAP"] = "Welcome Guest";
$page["RIGHT_STRAP"] = "";
$page["MENU_LOCATION"] = "home";
@include("http://resources.domain.com/inc/html.php");
@include("http://resources.domain.com/inc/body-header.php");
?>
html.php then has PHP in to echo the page title, CSS link etc.
However, these won't show up unless I use these include paths:
@include("resources/inc/html.php");
@include("resources/inc/body-header.php");
I thought it might have something to do with global variables, but it seems PHP is intent on not passing the array $page over to pages included with [url]http://[/url] or another domain in.
Is there any way round this, or how to get the above code working?
Cheers.
Joel