YellowYoshi
05-30-2003, 03:37 AM
The code for SSI is this, right?
<!--#include file="menu.txt" -->
It doesn't seem to work with me..... Please help!
<!--#include file="menu.txt" -->
It doesn't seem to work with me..... Please help!
|
View Full Version : SSI Question YellowYoshi 05-30-2003, 03:37 AM The code for SSI is this, right? <!--#include file="menu.txt" --> It doesn't seem to work with me..... Please help! Dude128 05-30-2003, 04:09 AM yes, it is the correct code. some things to check: are you sure your host supports SSI? does the page that code is on have the .shtml extension (unless you're using geoities in which case it should still be .html) are you sure you have a file named menu.txt? YellowYoshi 05-30-2003, 04:13 AM I checked everything. There is a file named menu.txt, I'm not using a host and the page extension is shtml. Is menu.txt supposed to have the <html> tag and <body> and all that stuff? Dude128 05-30-2003, 04:20 AM what tags it has depends on how it's being used- whatever is on menu.txt will get stuck into the page you're using the SSI code on. so if in place of the <html> tags, etc. on one page you're including menu.txt, then menu.txt has to have those tags. you're not using a host, as in you're trying to view the page locally (on your computer)? then that's the problem. the server/computer it's being viewed on has to support SSI. unless you have a webserver with SSI support installed, you won't be able to use it, you'll instead have to upload it to a host that does support SSI to test it. YellowYoshi 05-30-2003, 04:25 AM I tried it, and it still wont work. check it at http://yoshilore.iwebland.com/TestLayout.shtml . You can see what the menu.txt says at http://yoshilore.iwebland.com/menu.txt . Please help! Dude128 05-30-2003, 04:35 AM it seems that your host doesn't support SSI- you can tell because that code is visible in the page's source- if SSI was supported, that code would be replaced with the contents of menu.txt YellowYoshi 05-30-2003, 04:37 AM oh well... :( Thanks for helping anyways! amicus 05-30-2003, 01:44 PM try <!--#include virtual="menu.txt" --> sometimes 'file' doesn't work but 'virtual' wil. YellowYoshi 05-30-2003, 04:20 PM Didn't work, either. I don't think my host supports SSI... I'll use Iframes instead, then. My host supports PHP4 and MySQL, so I thought it would support SSI too, but I guess it didn't.... amicus 05-30-2003, 05:04 PM wait :) if you your host supports php try this one. i'm not a php expert so maybe someone who is can help more. <? include("filename.php") ?> YellowYoshi 05-30-2003, 05:09 PM Well, I already began making my new Iframe layout, so I'll try the PHP later. Thanks for helping! |