Commit 93d2c3ee authored by michael lundquist's avatar michael lundquist
Browse files

Changing my from substr to strpos

parent 98fd38d2
...@@ -23,7 +23,7 @@ function SQLlogin(){ ...@@ -23,7 +23,7 @@ function SQLlogin(){
$username = "root"; $username = "root";
$password = "root"; $password = "root";
if(strstr(PHP_ROOT,"public_html") === TRUE){ if(strpos(PHP_ROOT,"public_html") !== FALSE){
//greengeeks credentials //greengeeks credentials
echo "here"; echo "here";
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
//configure the database name? //configure the database name?
define("PHP_ROOT", $_SERVER["DOCUMENT_ROOT"]."/zipAPI"); define("PHP_ROOT", $_SERVER["DOCUMENT_ROOT"]."/zipAPI");
echo PHP_ROOT; echo PHP_ROOT;
if(strstr(PHP_ROOT,"public_html") === TRUE){ if(strpos(PHP_ROOT,"public_html") !== FALSE){
//API //API
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)
......
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