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
Asked
Active
Viewed 137 times
0
-
4You mean a PHP source file? That should never happen, Ajax or not. If that happens for you, your server is badly misconfigured. – Pekka Oct 06 '13 at 03:33
-
1Does your PHP file have the ` – SpaceDog Oct 06 '13 at 04:39
1 Answers
0
The host was not allowing config of private files, the solution was to move provider and place php above the root directory.

Datadimension
- 872
- 1
- 12
- 31