getting content of a page by ajax or php
hi
i have a page that its content loads by jquery ajax, i mean i have this code at the end of my page:
- $(document).ready(function() {
$.ajax({
type: "POST",
url: "inc/content.php",
data: ({'content_id':5}),
});
});
recently i found out google robots could not run this code, so the page content (that come from content.php file), wasn't considered by google.
so i think my only option is to get content by php, what is the equal php code for getting a dynamic php file into another file?
& i can not copy content.php code into my main file, beacause it used by so many pages.