javascript - Angular php file not found -
i want receive date , send php file
$http.post('views/php.php', { item: $scope.email }) .success(function(data) { console.log(data); });
but console log says
post http://localhost:9000/views/php.php 404 (not found)
however if go link shows , starts downloading.
why happen?
you not running on apache that's why downloading! running on npm server cannot interpret php. run xampp's should work fine .
Comments
Post a Comment