View Full Version : SSI help
WildWayz
Tue 4th Jul '00, 5:59am
Hi ya
Most of my site is made up of SSI calls, but I have hit a problem.
Because the file extensions have to be .shtml on my webserver, I call a text file called toplinks.txt which contains the top links of my site.
In there, I want to make an SSI call to a random quote, but because it is a .txt file, it won't allow it.
Is there anyway to bypass it?
--James
doron
Tue 4th Jul '00, 9:20am
you mean nested ssi calls?
(ssi calls toplinks.txt, which has a ssi call in it?)
I don't think it is possible, what you might want to do is split the file into the part above and below the nested ssi call
kenaal
Tue 11th Jul '00, 4:53am
If you are using PHP, bugger SSI and use include(). You can recursively call as many files as you want, php or not.
-Kenneth
WildWayz
Tue 11th Jul '00, 1:09pm
urm... please can you explain it a little more? :)
I am a newbie ;)
--WildWayz
PS - also, how can I do it so .php pages are shown if no HTML files are in the dir? At the moment, if an index.htm/l file isn't found, then it shows a dir listing.
eva2000
Tue 11th Jul '00, 1:33pm
i also need to know how to do php include calls :)
wildwayz... if you're still using webmin , the directory problem can be solved through webmin... that's how i got http://animeboards.net/forums/
to requet the index.php file
WildWayz
Tue 11th Jul '00, 2:05pm
Lo,
I have Webmin on my dedicated host, but because the server is hush-hush the admin isn't helping me.
And Apache isn't setup and I have no idea how to get it working LOL
MySQL works on it tho ;)
--James
eva2000
Wed 16th Aug '00, 2:18am
get your host to set it up...
thetakerfan
Wed 16th Aug '00, 3:02pm
<?php
require ('shtml/tophome.html');
require ('shtml/topnavstrip.html');
require ('shtml/topextrastrip.html');
require ('shtml/topsearch.html');
?>
I think its something like that, if not I'd have to check my page code, I'm pretty sure thats what it is
Require is better than the include function, I think
WebStyles
Wed 16th Aug '00, 3:28pm
You just need to make the toplinks.txt have a .shtml extension, then you can nest the SSI's. :)
thetakerfan
Wed 16th Aug '00, 4:23pm
that'll work too
vBulletin® v3.8.0 Alpha 1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.