title: Calling a php file from angularJs
body: <p>Hi I'm trying to call a php from the angularjs control file. </p>
  
  <p>Both PHP and Control file are in the same folders and inside <code>www</code> directory of <code>Wamp</code> and I'm calling php like this </p>
  
  <pre><code>`$scope.url='far_submit.php';`
  $http.post($scope.url, {"name": $scope.fname, "email": $scope.email, "lname": $scope.lname}).
                   success(function(data, status) {...}  
  </code></pre>
  
  <p>I'm getting an error in browser like <code>XMLHttpRequest cannot load file:///C:/wamp/www/reg/far_submit.php. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.</code></p>
  
  <p>Where I'm doing wrong ?</p>
  
  <p>Thank you.</p>