Jump to content

gnawz

Members
  • Posts

    237
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

gnawz's Achievements

Regular Member

Regular Member (3/5)

0

Reputation

  1. I use server root because I use that variable in very many places in my code
  2. Dear guys, I have a code that I always use on hosts and it works but is not working now The code is: The file is functions.php // setting up the web root and server root for // this application $thisFile = str_replace('\\', '/', __FILE__); $docRoot = $_SERVER['DOCUMENT_ROOT']; $webRoot = str_replace(array($docRoot, 'functions.php'), '', $thisFile); $srvRoot = str_replace('functions.php', '', $thisFile); define('WEB_ROOT', $webRoot); define('SRV_ROOT', $srvRoot); All the web files are in the root folder lifeforea and the admin files are in the lifeforea folder ir lifeforeastafrica/admin However, when I try to access www.lifeforeastafrica/admin to login into the admoin area, I get the folloeing error: Not Found The requested URL /mnt/local/admin/login.php was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. Someone help on how I should set my doc and server roots please.....
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.