![]() |
Embeding PHP inside HTML documents
How would I go about embeding PHP inside HTML Documents? Such as variables?
I do not want to use an .HTACCESS Considering this I need it for my new site which has almost everything written in PHP using variables and functions. Such as I have a variable named: PHP Code:
@James |
Capture the output of the file into the buffer, then just echo it. Like so:
PHP Code:
|
Quote:
|
You may also want to see extract if you're going to create a library (aka class).
|
I like your method, Xenon, I hadn't gotten to that point just yet. Though I have used that method for caching sections. Thanks for posting it.
|
that code snippet can be made shorter i believe:
PHP Code:
|
Quote:
UPDATE: PHP Code:
|
PHP Code:
PHP Code:
PHP Code:
to use: PHP Code:
|
I'm a bit sick today so I cannot really complete much of my code, much less my sentences >.< need some tea
|
| All times are GMT. The time now is 11:22 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0