php code not interpreted with an ajax call
Hi,
When I try this line on a local server or any ajax call (ajax, get, post)
-
$('#requestcontent').load('text.php');
the php code is not interpreted. Only HTML code is visible.
text.php :
- <h1>Title</h1>
- <?php
- echo 'Text';
- ?>
In this case only <h1>Title</h1> is in #requestcontent div.
Of course my server is active :)
If anyone already found the solution.
Thanx
Laurent