Commit 32342ac6 authored by michael lundquist's avatar michael lundquist
Browse files

Checking if paths are right on the live server

parent 2d1dce93
......@@ -2,11 +2,13 @@
//configure the database name?
if(is_dir(dirname(__FILE__)."/../zipAPI")){
//localhost
echo "localhost ". dirname(__FILE__);
define("PHP_ROOT", $_SERVER["DOCUMENT_ROOT"]."/zipAPI");
define("HTML_ROOT", "/zipAPI");
define("URL", "http://127.0.0.1/nuts/nutrition/");
}elseif(is_dir(dirname(__FILE__)."/../../public_html")){
//SMS
//API
echo "API ". dirname(__FILE__);
define("PHP_ROOT", $_SERVER["DOCUMENT_ROOT"]);
define("HTML_ROOT", "");
define("URL", "https://mikeroservices.com/zipAPI/");//can't be www. this is a different domain (cert won't work)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment