Commit da867010 authored by michael lundquist's avatar michael lundquist
Browse files

changing the way I check if I'm on the live server

parent 30986054
<?php
//configure the database name?
if(is_dir("/home/sellmysh/public_html/mikeroservices.com/zipAPI")){
define("PHP_ROOT", $_SERVER["DOCUMENT_ROOT"]."/zipAPI");
if(strstr(PHP_ROOT,"public_html") === TRUE){
//API
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)
}elseif(is_dir("C:\apache\htdocs\mikeroservices.com\zipAPI")){
//localhost
define("PHP_ROOT", $_SERVER["DOCUMENT_ROOT"]."/zipAPI");
define("HTML_ROOT", "/zipAPI");
define("URL", "http://127.0.0.1/mikeroservices.com/zipAPI");
}else{
......
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