The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Better solution to find init
#1
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?
  Reply


Messages In This Thread
Better solution to find init - by Brandin - 09-03-2017, 07:35 PM
Better solution to find init - by mudmin - 09-04-2017, 01:10 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)