# SSI Includes question

**URL:** <https://forum.kirupa.com/t/ssi-includes-question/14700>\
**Category:** programming\
**Created:** [March 1, 2003, 5:36pm UTC](https://forum.kirupa.com/t/ssi-includes-question/14700 "2003-03-01T17:36:09Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![lava](https://avatars.discourse-cdn.com/v4/letter/l/a4c791/32.png) [@lava](https://forum.kirupa.com/u/lava)\
**Post date:** [March 1, 2003, 5:36pm UTC](https://forum.kirupa.com/t/ssi-includes-question/14700/1 "2003-03-01T17:36:09Z")

</div>

Hi… I’m trying to do some serverside includes, and I’m with MediaTemple, but they’re not showing up (I guess they’re not supported, or I’m doing something wrong)  
I just want to know if there’s a cgi that I need to do SSI, and if there are any tutorials on it… cause all I’m finding is SSI tuts specific to a certain server…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 1, 2003, 5:46pm UTC](https://forum.kirupa.com/t/ssi-includes-question/14700/2 "2003-03-01T17:46:54Z")

</div>

check the sticky thread at the top of the page. That has some links that have CGI information. Curious tho, why are you using CGI? and not PHP or ASP?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 1, 2003, 5:52pm UTC](https://forum.kirupa.com/t/ssi-includes-question/14700/3 "2003-03-01T17:52:26Z")

</div>

I’m using PHP… now I’m finding out I have to do something to the .htaccess file… I’m just not sure what.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 1, 2003, 6:01pm UTC](https://forum.kirupa.com/t/ssi-includes-question/14700/4 "2003-03-01T18:01:58Z")

</div>

Never used media temple… what is the code you are using for the include?

```php

include_once("finename.php");

```

???

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 1, 2003, 6:34pm UTC](https://forum.kirupa.com/t/ssi-includes-question/14700/5 "2003-03-01T18:34:40Z")

</div>

well, I want to do stuf like \<-- #include virtual=“header.htm”–\>

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 1, 2003, 7:55pm UTC](https://forum.kirupa.com/t/ssi-includes-question/14700/6 "2003-03-01T19:55:22Z")

</div>

Well if you are just trying to include headers and footers, then just have code like

```php

<html>
<body>
<?
include('header.php');
?>

SOME BODY OF YOUR PAGE HERE

<?
include('footer.php');
?>
</body>
</html>

```

Thats how most of my pages are set up…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 2, 2003, 3:18pm UTC](https://forum.kirupa.com/t/ssi-includes-question/14700/7 "2003-03-02T15:18:53Z")

</div>

ok, I had trouble doing

```php
<!-- #include file = "/header.html" -->
<!-- #include file = "/footer.html" -->

```

it will only show the first one… I can’t include a second one for some reason… (and I tried switching the position of the lines.) Do you guys know what’s going on?

And if I decide to do it the PHP way… do I HAVE to rename my files to .php? I want to keep them .html…  
thanks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 2, 2003, 5:43pm UTC](https://forum.kirupa.com/t/ssi-includes-question/14700/8 "2003-03-02T17:43:48Z")

</div>

Actually Neither .html or.php is the “correct” way to use Includes…

.inc (include) is the real include type _lol_…

But it doesn’t really matter… I’d suggets converting to php though man to do it… It’ll be alot less of a hassle…

```php

<?PHP
include_once("flename.php");
?>

```

Jubba was correct with that… And you might have to let the other on fully load up before loading up another include… :-o
