Hello,
I am making an online gallery for a friend and have this (partially listed) folder structure.
root/index.php
root/inc/gallery.inc.php
root/inc/setup.inc.php
root/inc/includes.inc.php
Gallery.inc.php has various functions in it (Get image, album, etc), setup.inc.php has config variables (for my friend's ease of access, contains SQL stuff and date formats), here is what includes.inc.php looks like:
<?php
require "setup.inc.php";
require "gallery.inc.php";
?>
index.php has this code at the top:
<?php
include "inc/includes.inc.php";
?>
What I would like to do is use variables and functions FROM settings.inc.php IN gallery.inc.php.
I can access functions from settings.inc.php in gallery.inc.php but not variables...
No there is no "class ______" calls anywhere and therefore I see no problem with my code.
Any and all help is appreciated,
-- Turt2Live