![Closed Thread Icon](https://ozoneasylum.com/modules/archivedthread/closed.jpg) |
|
Skatefx
Bipolar (III) Inmate
From: Small Patch of Grass in CT Insane since: Mar 2001
|
posted 11-29-2001 10:10
Im just trying to figure out how to embed other HTML pages using SSI. I did it a while ago but forgot the declaration.
![](http://www.skatefx.com/images/sigs/sig1.gif)
|
Pugzly
Paranoid (IV) Inmate
From: 127.0.0.1 Insane since: Apr 2000
|
posted 11-29-2001 15:13
|
Petskull
Maniac (V) Mad Scientist
From: 127 Halcyon Road, Marenia, Atlantis Insane since: Aug 2000
|
posted 11-29-2001 17:27
try here:
http://www.ozoneasylum.com/Forum12/HTML/000519.html
tskull@hotmail.com">
"A kleptomaniac is a person who helps himself because he can't help himself." --Henry Morgan
ICQ: 67751342
|
WarMage
Maniac (V) Mad Scientist
From: Rochester, New York, USA Insane since: May 2000
|
posted 11-29-2001 18:51
I gave up on SSI and now do PHP for all the pages where I once did SSI, by doing this it makes it much easier to add functionality in the future, and it is much easier to implement in standard programming context, as opposed to the way that SSI is implemented, which tends to be a little less intuitive.
|
Allewyn
Maniac (V) Mad Scientist
From: Solitary confinement Insane since: Feb 2001
|
posted 12-02-2001 17:24
|
Emperor
Maniac (V) Mad Scientist with Finglongers
From: Cell 53, East Wing Insane since: Jul 2001
|
posted 12-02-2001 18:01
Skatefx: If you have access to PHP then I'd go down that road. As well as the link to WarMage's tutorial see the manual:
www.php.net/include
I had assumed you were using SSI already as you have .shtml pages.
Emps
You're my wife now Dave
|
Skatefx
Bipolar (III) Inmate
From: Small Patch of Grass in CT Insane since: Mar 2001
|
posted 12-02-2001 23:39
That would be correct.
![](http://www.skatefx.com/images/sigs/sig1.gif)
|
Petskull
Maniac (V) Mad Scientist
From: 127 Halcyon Road, Marenia, Atlantis Insane since: Aug 2000
|
posted 12-03-2001 10:04
uh-oh..... I have http://www.petskull.f2s.com/firedancer/index.shtml but try going to http://www.petskull.f2s.com/firedancer/ and see what happens.....
stupid F2S.... can I change this somehow?
tskull@hotmail.com">
"A kleptomaniac is a person who helps himself because he can't help himself." --Henry Morgan
ICQ: 67751342
|
Emperor
Maniac (V) Mad Scientist with Finglongers
From: Cell 53, East Wing Insane since: Jul 2001
|
posted 12-03-2001 14:23
PS: If f2s allow .htaccess files then you can swap things around so that it defaults to .shtml try:
code:
DirectoryIndex index.shtml index.php index.html
I think that should work.
Emps
[edit: Ooops gave the wrong bit of the .htaccess file - I might run off a quick tutorial on advanced uses of the .htaccess file]
You're my wife now Dave
[This message has been edited by Emperor (edited 12-03-2001).]
|
Petskull
Maniac (V) Mad Scientist
From: 127 Halcyon Road, Marenia, Atlantis Insane since: Aug 2000
|
posted 12-03-2001 22:13
dunno if they do......
anybody know?
tskull@hotmail.com">
"A kleptomaniac is a person who helps himself because he can't help himself." --Henry Morgan
ICQ: 67751342
|
Emperor
Maniac (V) Mad Scientist with Finglongers
From: Cell 53, East Wing Insane since: Jul 2001
|
posted 12-03-2001 22:17
PS: I'm pretty sure they should (I have met hosts that don't) so try it.
Emps
|
Petskull
Maniac (V) Mad Scientist
From: 127 Halcyon Road, Marenia, Atlantis Insane since: Aug 2000
|
posted 12-03-2001 22:42
I've seen pages that end in 'htm' and 'html' and have SSI.... what's up wit' 'dat?
tskull@hotmail.com">
"A kleptomaniac is a person who helps himself because he can't help himself." --Henry Morgan
ICQ: 67751342
|
bitdamaged
Maniac (V) Mad Scientist
From: 100101010011 <-- right about here Insane since: Mar 2000
|
posted 12-03-2001 22:57
It's just in how the server is configured. You can set Apache to parse any extension you want for SSI but it adds to the page generation overhead.
:[ Computers let you make more mistakes faster than any other invention in human history, with the possible exceptions of handguns and tequila. ]:
|
Pugzly
Paranoid (IV) Inmate
From: 127.0.0.1 Insane since: Apr 2000
|
posted 12-03-2001 23:05
You can set the server to parse just about anything for includes. The problem with doing that is that any page with that extension now gets parsed for SSI info. If every page has INCLUDES, that's fine. But if it's only a few, why put every page through the wringer?
|
JakeB
Paranoid (IV) Inmate
From: us Insane since: Oct 2000
|
posted 12-03-2001 23:37
You can also make it so if any page has the execute bit set, it is parsed.
|
Emperor
Maniac (V) Mad Scientist with Finglongers
From: Cell 53, East Wing Insane since: Jul 2001
|
posted 12-03-2001 23:54
PS: You could configure your .htaccess file so you could have pages like:
http://www.mysite.com/links.petskull
if you so wanted.
Emps
You're my wife now Dave
|
Petskull
Maniac (V) Mad Scientist
From: 127 Halcyon Road, Marenia, Atlantis Insane since: Aug 2000
|
posted 12-04-2001 15:22
anybody got any type of tutorial on the use and antics of the .htaccess file?
"A kleptomaniac is a person who helps himself because he can't help himself." --Henry Morgan
ICQ: 67751342
[This message has been edited by Petskull (edited 12-04-2001).]
|
mr.maX
Maniac (V) Mad Scientist
From: Belgrade, Serbia Insane since: Sep 2000
|
posted 12-04-2001 18:09
Petskull, just read Apache's manual... There's no better tutorial than that! ![](http://grail.ozoneasylum.com/images/slimies/biggrin.gif)
Here's a brief explanation how to use Apache's manual to get the appropriate information. List of all configurable run-time options can be found here: http://httpd.apache.org/docs/mod/directives.html Now, for example, if you click on "ErrorDocument" option, you'll be redirected to: http://httpd.apache.org/docs/mod/core.html#errordocument and there you'll see something like this:
ErrorDocument directive
Syntax: ErrorDocument error-code document
Context: server config, virtual host, directory, .htaccess
Status: core
Override: FileInfo
Compatibility: The directory and .htaccess contexts are only available in Apache 1.1 and later.
...
Pay special attention to the bolded line. It says that this option can be used from .htaccess files. And that's all, if you're unsure if some option is available from .htaccess, simply read what's written in "Context" field...
Oh, and one more thing, what options you can use in .htaccess files is determined by "AllowOverride" option from main httpd.conf configuration file, and to find out how "AllowOverride" option is configured on your web server, ask you system administrator...
![](http://www.maxworld.co.yu/ozone/quotes/)
|