I am making an online gallery for a friend and have this (partially listed) folder structure.
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,