I'm getting perplexed with this. I am using XAMPP, and my application is installed at my C:\xampp\htdocs\photos, where 'photos' is the name of my application. For security purposes, I have decided that documents accessible to the public will be at C:\xampp\htdocs\photos\pub
lic, while I put files I do not want the public to access at C:\xampp\htdocs\photos\inc
So when I run http://localhost/photos/public
, it runs the default file index.php. The very first line in this file is:
.php'); // This works just fine and is able to load initialize.php
But inside the file "initialize.php" is where my problem begins. Here is the actual code within initialize.php:
defined('DS') ? null : define('DS', DIRECTORY_SEPARATOR);
defined('SITE_ROOT') ? null : define('SITE_ROOT', DS.'photos');
defined('LIB_PATH') ? null : define('LIB_PATH', SITE_ROOT.DS.'includes');
// load config file first
echo LIB_PATH.DS.'functions.php'; // prints out \photos\includes\config.php, which is correct
require_once(LIB_PATH.DS.'functions.php'); // This line is getting the error that it's not found! Why??
This thing is frustrating me, and I would really appreciate any help. Thanks.