This question already has answers here:
</div>
</div>
<div class="grid--cell mb0 mt4">
<a href="/questions/5121495/php-code-is-not-being-executed-instead-code-shows-on-the-page" dir="ltr">PHP code is not being executed, instead code shows on the page</a>
<span class="question-originals-answer-count">
(27 answers)
</span>
</div>
<div class="grid--cell mb0 mt8">Closed <span title="2016-06-11 11:32:29Z" class="relativetime">3 years ago</span>.</div>
</div>
</aside>
Is there any way to prevent jQuery AJAX retreiving a complete PHP file instead of its server output ? I just tried to obtain text only output, expecting what ever php decides to return, but got the whole file. Not ideal if as on some files it would reveal potential hacking targets such as database tables etc
</div>