![]() |
file_get_contents with PHP tags
Hi I want to get the contents of a html + php with file_get_contents. As I print it, it prints the php tags like simple text. How can I get the php tags as php tags. I know my question is confusing. I hope you understand it.
Thanks in Advance. |
You would use include or require to read the file.
|
actually I use have a HTML (named profil.html) file which contains php coding inside.I used file_get_contents and parse it. The php codings is turned as string not as php script.
PHP Code:
|
PHP Code:
|
Actually I was using
this tutorial with some php tags in TBL/HTML Files. It was really hard to do that. So I just used include as you told me. Thanks anyway |
| All times are GMT. The time now is 12:26 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0