09-03-2017, 07:35 PM
So my biggest problem is calling init from different directories (in particular, my userpost.php file inside of /templates/)
I currently call using:
require_once $_SERVER['DOCUMENT_ROOT'] .'/mydash/users/init.php';
But if I move this to my prod server, I lose the /mydash/ dir - which means this function breaks
Thoughts?
I currently call using:
require_once $_SERVER['DOCUMENT_ROOT'] .'/mydash/users/init.php';
But if I move this to my prod server, I lose the /mydash/ dir - which means this function breaks
Thoughts?