Warning: include_once(../DAL/ServiceRequestDataAccess.php) [function.include-once]: failed to open stream: No such file or directory in C:\wamp\www\MSRS\BLL\NewRequestFunctions.php on line 3
My file structure is as follows:
MSRS->DAL/Data Access classes and functions
->BLL/Business Logic classes and functions
As shown in the error message, ServiceRequestDataAccess.php is located in the DAL folder, and it's calling page is the NewRequestFunctions.php in the BLL folder. My problem now is that NewRequestFunctions can't seem to locate ServiceRequestDataAccess.
Sample code from NewRequestFunctions
<?php session_start(); include_once("../DAL/ServiceRequestDataAccess.php"); ?>
This is weird because I have another code file located in BLL named EvaluateLogin.php with the following:
<?php session_start(); include_once("../DAL/EmployeeDataAccess.php"); include_once("../DAL/DepartmentDataAccess.php"); include_once("../DAL/SectionDataAccess.php"); ?>
and they work perfectly. Also I have an include_once("dbconnect.php") statement in all Data Access code files. My dbconnect is located in the DAL folder as well. Another weird thing is when I move dbconnect and ServiceRequestDataAccess to the BLL folder, the web app works fine.