Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michael R Lundquist
zipAPI
Commits
32342ac6
Commit
32342ac6
authored
Nov 14, 2018
by
michael lundquist
Browse files
Checking if paths are right on the live server
parent
2d1dce93
Changes
1
Show whitespace changes
Inline
Side-by-side
configNuts.php
View file @
32342ac6
...
@@ -2,11 +2,13 @@
...
@@ -2,11 +2,13 @@
//configure the database name?
//configure the database name?
if
(
is_dir
(
dirname
(
__FILE__
)
.
"/../zipAPI"
)){
if
(
is_dir
(
dirname
(
__FILE__
)
.
"/../zipAPI"
)){
//localhost
//localhost
echo
"localhost "
.
dirname
(
__FILE__
);
define
(
"PHP_ROOT"
,
$_SERVER
[
"DOCUMENT_ROOT"
]
.
"/zipAPI"
);
define
(
"PHP_ROOT"
,
$_SERVER
[
"DOCUMENT_ROOT"
]
.
"/zipAPI"
);
define
(
"HTML_ROOT"
,
"/zipAPI"
);
define
(
"HTML_ROOT"
,
"/zipAPI"
);
define
(
"URL"
,
"http://127.0.0.1/nuts/nutrition/"
);
define
(
"URL"
,
"http://127.0.0.1/nuts/nutrition/"
);
}
elseif
(
is_dir
(
dirname
(
__FILE__
)
.
"/../../public_html"
)){
}
elseif
(
is_dir
(
dirname
(
__FILE__
)
.
"/../../public_html"
)){
//SMS
//API
echo
"API "
.
dirname
(
__FILE__
);
define
(
"PHP_ROOT"
,
$_SERVER
[
"DOCUMENT_ROOT"
]);
define
(
"PHP_ROOT"
,
$_SERVER
[
"DOCUMENT_ROOT"
]);
define
(
"HTML_ROOT"
,
""
);
define
(
"HTML_ROOT"
,
""
);
define
(
"URL"
,
"https://mikeroservices.com/zipAPI/"
);
//can't be www. this is a different domain (cert won't work)
define
(
"URL"
,
"https://mikeroservices.com/zipAPI/"
);
//can't be www. this is a different domain (cert won't work)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment