Trying to replace an ajax page with php without ajax... appear html source code - text only

You know where is wrong…

Trying to replace an ajax page with php without ajax… but when I include php file rather page appear with graphics… appear html source code - text only… well?

Uh what… you seem to have thrown a lot of buzz words around without really understanding what they mean, at least that is all I can assume at this point.

Try starting over and stating, what the page did previously?, what was the ajax page used for?

Then tell us what you want it to do. Why do you want it to no longer be an ajax request? What is the end result you are trying to achieve here?

1 Like

In all my years here I think you just won the award for most poorly explained problem. I don’t understand one part of anything you just said.

Ajax used jquery to load data from mysql…php and jquery to put data in its place in html document… now put php require on top of page … convert file ext to php from html… but populated by php but rather graphics appear source code seems populated … php works… but why source code… getting… what in PHP may have done this…?

You know it would really help if you wrote complete sentences rather than disjointed phrases. I’m afraid your explanation is no clearer than before.

Ajax only (page.html) is used jquery to load data from mysql/php and jquery to put data in its place in html document… In my try to convert to page.php… now put php require (file ajax request before) on top of page … but result is page populated by php but rather graphics appear source code [anyway source code seems populated … php works…] but why source code… getting… what in PHP [in php include/require] may have done this…?

now i am clear…?

nope

1 Like

you know any statement in PHP make/cause appear source code rather the normal processed source code in browser (graphics page)…?

there is none. the only way to not process a PHP script is a server issue (because the server is responsible for calling the php processor).

1 Like

header(‘Content-Type: application/json’);

was this line ^^^ in PHP top of file - commented out and works

2 Likes

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.