Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

 

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
New Webmasters ask "How-To" questions here. This is where other fucking Webmasters help.

 
Thread Tools
Old 04-16-2010, 02:26 PM   #1
fatfoo
ICQ:649699063
 
Industry Role:
Join Date: Mar 2003
Posts: 27,763
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
__________________
Send me an email: [email protected]
fatfoo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 04-16-2010, 02:41 PM   #2
mikke
Confirmed User
 
mikke's Avatar
 
Industry Role:
Join Date: Jan 2010
Location: Europe
Posts: 1,327
rename index.html to index.php and try
PHP Code:
<?php include('top.html'); ?>
;)
__________________
icq: 395 294 346
http://www.adultsubmitter.eu - submit any adult site to 20 directories from 1 form!
now 20 domains!
http://www.porndeals.eu http://www.ebonybangbros.com
mikke is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 04-16-2010, 03:39 PM   #3
Stef.
Confirmed User
 
Stef.'s Avatar
 
Industry Role:
Join Date: Feb 2009
Posts: 995
ask a guy with that much gfy posts count and so clueless ?!?!? LOL
__________________
Try RSTGP : A Really Simple FREE Thumb Rotator Script. You Can Build A Complete TGP Site In 20 Minutes...
contact me if you have questions (example site : Teen Sex Galleries )
Sexy Cams Online
Stef. is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 04-16-2010, 07:52 PM   #4
fatfoo
ICQ:649699063
 
Industry Role:
Join Date: Mar 2003
Posts: 27,763
Quote:
Originally Posted by mikke View Post
rename index.html to index.php and try
PHP Code:
<?php include('top.html'); ?>
;)
I will try that...
__________________
Send me an email: [email protected]
fatfoo is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 04-16-2010, 07:55 PM   #5
DigitalTheory
^-^
 
Industry Role:
Join Date: Jul 2007
Location: SacTown
Posts: 1,055
Quote:
Originally Posted by mikke View Post
rename index.html to index.php and try
PHP Code:
<?php include('top.html'); ?>
;)

exactly this, a php include will not work on an html page.
DigitalTheory is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
Old 04-19-2010, 04:49 PM   #6
HomerSimpson
Too lazy to set a custom title
 
HomerSimpson's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: Springfield
Posts: 13,826
Quote:
Originally Posted by DigitalTheory View Post
exactly this, a php include will not work on an html page.
well it could work if you say apache to parse .html files as php ones...
you should add something like this to your htaccess
Code:
AddHandler application/x-httpd-php htm html
but that depends on server config (ask your hosting provider for this line).

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)
__________________
Make a bank with Chaturbate - the best selling webcam program
Ads that can't be block with AdBlockers !!! /// Best paying popup program (Bitcoin payouts) !!!

PHP, MySql, Smarty, CodeIgniter, Laravel, WordPress, NATS... fixing stuff, server migrations & optimizations... My ICQ: 27429884 | Email:
HomerSimpson is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook
 
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.