A
Anonymous
Guest
On my site I want to build a User Selectable layout and color scheme feature which passes the layout and color variables around the urls via a formatted string like $urlextra. While all that worked fine one of my require();'ed files variables don't seem to be globalized or available to my other scripts.
The index.php code is this:
(old code edited out)
and the getColors and getTemplate functions are defined in 'layout.php' like so:
(old code edited out)
So it indicates that colorstr is a string that points exactly to where my file supplying the variables is located on my server and because I used require as opposed to include tells me that it hasn't encountered any fatal errors. So why isn't the require working properly? The templatestr (used in the function getTemplate) worked perfectly and supplied the layout variables necessary for the content of the page (just horrendously ugly with all hex colors in one, missing, file). $scrollbar and $bgcolor were just css variables for the templates (and were also contained in layout/colorsets/default.php).
Any help would be very appreciated.
PS. This is the string I use to pass variables through the url as I have yet to implement an effective session/login system.
$urlextra="&style=" . $style . "&c=" . $c;
but that's mostly because I have yet to implement an effective session/login system. Everything in it's time I guess.
The index.php code is this:
(old code edited out)
and the getColors and getTemplate functions are defined in 'layout.php' like so:
(old code edited out)
So it indicates that colorstr is a string that points exactly to where my file supplying the variables is located on my server and because I used require as opposed to include tells me that it hasn't encountered any fatal errors. So why isn't the require working properly? The templatestr (used in the function getTemplate) worked perfectly and supplied the layout variables necessary for the content of the page (just horrendously ugly with all hex colors in one, missing, file). $scrollbar and $bgcolor were just css variables for the templates (and were also contained in layout/colorsets/default.php).
Any help would be very appreciated.
PS. This is the string I use to pass variables through the url as I have yet to implement an effective session/login system.
$urlextra="&style=" . $style . "&c=" . $c;
but that's mostly because I have yet to implement an effective session/login system. Everything in it's time I guess.