Help with Server side includes

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Help with Server side includes

Postby guido174 » 12. February 2004 14:36

Does anyone know how to use headers and footers thru includes?
<!--#include virtual="header.html" -->
<!--#include virtual="footer.html" -->
I'm running on Windows XP so I can't use the XBitHack Directive.
Thanks for any help
guido174
 
Posts: 2
Joined: 06. February 2004 21:25
Location: New Hampshire

Postby MAGnUm » 19. February 2004 15:38

i never really use ssl, so here is something in php that should do it for you.

Code: Select all
<?php include 'your_file_name.html'; ?>


that will do it. as far as ssl ???
~~:M A G n U m:~~
(Disclaimer: if any of this info is confusing or vague tough, its free!!)
User avatar
MAGnUm
 
Posts: 151
Joined: 16. October 2003 18:08
Location: USA

includes

Postby guido174 » 20. February 2004 14:56

Thanks MAGnUm!
Your solution is probably correct but I can't use it. Our main web site uses apache for linux and my local test site uses apache for windows. I don't want to have two different sets of code to maintain.
Thanks anyway for your response.
guido174
 
Posts: 2
Joined: 06. February 2004 21:25
Location: New Hampshire

includes

Postby MAGnUm » 26. February 2004 00:35

yes it will work just place all of u=your includes into a single dir and have you host config php.ini on your linux host to point to that include dir. includes search for the files in a couple of dirs the one the file is in and the ones you specify in php.ini. hope this helps. your web host should know what i am talking about if you dont, if not find one that does. good luck.
~~:M A G n U m:~~
(Disclaimer: if any of this info is confusing or vague tough, its free!!)
User avatar
MAGnUm
 
Posts: 151
Joined: 16. October 2003 18:08
Location: USA

Postby Yana » 12. March 2004 13:03

Help, please! So and I tried to use SSI on XAMPP (Windows XP) but shtml-file doesn't work. What I have to change in httpd.conf?

Please, don't advise me something other (PHP etc) but exactly for SSI
Yana
 
Posts: 11
Joined: 10. March 2004 16:34

Postby Yana » 12. March 2004 14:55

Ended! I've found it!

HTTPD.CONF
You have to activate this thing (to delete #)
Code: Select all
AddOutputFilter INCLUDES .shtml


Then add that code below
Code: Select all
<Directory "[directory_for_users'_sites]">
   Options Includes
</Directory>


Example. I have XAMPP in E:/xampp
Users' sites are here: E:/users

My code
Code: Select all
<Directory "/users">
   Options Includes
</Directory>
Yana
 
Posts: 11
Joined: 10. March 2004 16:34


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 55 guests