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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -