I am new to php development and I am stuck on something stupid : I want to execute a php script from my html page.
I do the following to do so :
$.ajax({
type: "GET",
url: "test1.php",
success: function(response) {
//alert(response);
console.log(response);
},
error: function(response) {
}
});
But when I log the response, I see the php source code in the response :
[Log] <?php (localhost, line 23)
$output = "LALALALALALALALALALALALALA"
echo $output;
?>