Hi, is there a way to take the contents of a php file while processing PHP code? I need to include the code on another page, but I need to print the content in a specific position.
If I use include, the code will be printed before the html tag, of course, causes it to be processed before the page, but if I use file_get_contents, the content will be shown on the page, but if I have some php tags, I will also get them as plain text.
Thanks.
EDIT: sorry guys, it looks like I was drunk when I wrote. I have corrected.
I have a engine that processes the contents of a page, puts them in a variable, and then prints them at a specific position on the html page. In the engine, I need to "embed" the code of other "static" pages, which may have some php tags. If I use file_get_contents, I will get the content in plain text (with php tags that are not processed), if I use include, it simply will not work, because this is not a function for it. Therefore, I need to insert the PROCESSED code into the engine (as HTML ready for printing).
include php
Sandro Antonucci
source share