- Impact
- 34
php and html noob question
Is available tu use this: "<?
require_once("footer.php");
?>" in html and if it is how? thanks
Is available tu use this: "<?
require_once("footer.php");
?>" in html and if it is how? thanks
Sure! And put it anywhere you want. The file must be .php (not .html)jackdomain said:Is available tu use this: "<?
require_once("footer.php");
?>" in html and if it is how? thanks
will never work.jackdomain said:but if i want to be it html?
RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html
jackdomain said:Is available tu use this: "<?
require_once("footer.php");
?>" in html and if it is how? thanks
You can instruct Apache to parse .html files as PHP, as DopeDomains pointed.domainstarz said:Html and php are 2 different things they will never go together, so Dont try to put php in html.
You don't need to. As long as the file .html could not execute in host, it can not parse the PHP code. Or if he want he can make IFRAME for this code (need a bit more work)paaaaaaaaaa said:What he really needed to know was that a php file is the same as a html page as in it can have html code in it. The only difference is that in a php file anything inside a <?php ?> tag will be parsed as php code.
http://en.wikipedia.org/wiki/Server_Side_Includessnareklutz said:If all you're gonna do is include a footer your could try using SSI.