![]() |
How to insert html page into another page?
Hello,
Let's say you have a top.html and you want to insert it into index.html. What are some ways to do this? I tried these 3 lines of code, but they did not work. <!--#include virtual="top.html"> <?include "top.html"?> <?php include("top.html"); ?> Thank you, Fatfoo |
rename index.html to index.php and try
PHP Code:
|
ask a guy with that much gfy posts count and so clueless ?!?!? LOL :1orglaugh:1orglaugh
|
Quote:
|
Quote:
exactly this, a php include will not work on an html page. |
Quote:
you should add something like this to your htaccess Code:
AddHandler application/x-httpd-php htm html this way you can use php inside .htm or .html files... if you have lot's of .html files try to avoid this. you can also do it by mod_rewrite... hit me up for specific details (icq in sig) |
All times are GMT -7. The time now is 07:07 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123