How can I get Virtual Includes Working?

Asked by:
KenM
Time:
2011-08-18 7:45 pm
Category:
How To
Hits:
933
Hi,

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

You must login before you can ask a follow up question.

You must login before you can submit an answer.

Best answer chosen by User

0

bradm
2011-08-18 8:17 pm
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 YourDomain.com/file1.shtml, 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.

Thanks,

- Brad

You must login before you can post a comment about this answer.

Like this Question?

Have a Question?

If you need some help, submit your question to our Community! We guarantee a response within 60 minutes (8am - 9pm EST, Monday - Friday)

Recent Questions

  1. how to make new website with single account.
  2. Internal Server Error
  3. Add a note field to order page in Prestashop 1.5

Support Center Search

Current Customers

Email: support@WebHostingHub.com 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.