How can I get Virtual Includes Working?

Asked by:
KenM / 13 Points
2011-08-18 3:45 pm EST
How To

Just wondering how to use "virtual include". I've used it in the past, but it doesn't seem to be working on this host. What do I have to do to get it to work?

Also, are Entropy Banners available? I've never used them, but it sounds like something I would like to use?

Thanks for any help you can provide

To ask this user for more information, please first login.

To submit an answer, please login.

Best answer chosen by User


1,846 Points
2011-08-18 4:17 pm EST
Hi KenM,

Virtual Includes are supported, here is an example:

Create file1.shtml
Create file1.shtml with the following code:

<h1>This is file1.shtml</h1>
<!--#include virtual="file2.html" -->

Create file2.html
In the same directory as file1.shtml, create file2.html with the following code:

<h1>This is file2.html</h1>

Load file1.shtml in your browser
When you visit, you should see:

This is file1.shtml
This is file2.html

Be sure that the file doing the including is named with a .shtml extension.

Entropy Banners
We don't get too many requests regarding Entropy Banner, it is currently not available within your cPanel. If you can let us know what software you're using and what exactly you're trying to accomplish, I'll be more than happy to point you in the right direction.

I hope this helps! Let us know if you have any further questions.


- Brad

To submit a comment on this answer, please first login.

Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!

Help Center Search

Current Customers

Email: Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.