title: PHP project working correctly in local host but not in remote server
body: <p>i cant trace out the problem am new to remote server with php</p>
  
  <p>here is the part of my program where problem occurs</p>
  
  <pre><code>function handleLogin(email, password, callback){
      var jsonToReturn = "";
  
      $.ajax(appRoot+'access/login', {
          method: "POST",
          data: {email:email, password:password}
      }).done(function(returnedData){
          if(returnedData.status === 1){
              jsonToReturn = {status:1, msg:"Authenticated..."};
          }
  
          else{
              //display error messages
              jsonToReturn = {status:0, msg:"Invalid email/password combination"};
          }
  
          typeof(callback) === "function" ? callback(jsonToReturn) : "";
  
      }).fail(function(){
          //set error message based on the internet connectivity of the user
          var msg = "Log in failed. Please check your internet connection and try again later.";
  
          //display error messages
          jsonToReturn = {status:0, msg:msg};
  
          typeof(callback) === "function" ? callback(jsonToReturn) : "";
      });
  }
  </code></pre>
  
  <p>In local server it works fine but in remote server it call fails function and displays message "Log in failed. Please check your internet connection and try again later.";</p>
  
  <p>thanks in advance</p>