Gossamer Forum
Home : General : Perl Programming :

SSI Prob :(

Quote Reply
SSI Prob :(
Ok, I'm trying to use SSI on my site. It used to all work fine on my old server, but now I am moving to a new one which has Gimp install (image editing software, that can interact with Perl). The problem I am having is the following.

I am trying to include files into it (for menus, random 88x31 banners etc). I have tried 3 variations of the code, and none of them work Frown

I've tried the following for the static menu file;

<!--#include virtual="/newincludes/copyright.txt"-->

and

<!--#include virtual="newincludes/copyright.txt"-->

and

<!--#include virtual="/home/templates.ws/public_html/newincludes/copyright.txt"-->

and

<!--#include virtual="home/templates.ws/public_html/newincludes/copyright.txt"-->

Any other ideas?

Thanks

Andy

webmaster@ace-installer.com
http://www.ace-installer.com
Quote Reply
Re: SSI Prob :( In reply to
Use &amplt; for the opening bracket so we can see the code :)

Mods:http://wiredon.net/gt/download.shtml
Installations:http://wiredon.net/gt/
Quote Reply
Re: SSI Prob :( In reply to
Oh, thanks. Fixed the post Smile

Andy

webmaster@ace-installer.com
http://www.ace-installer.com
Quote Reply
Re: SSI Prob :( In reply to
Anyone? This is all that is stopping me from moving over to my new host, and closing my old account down Frown

Andy

webmaster@ace-installer.com
http://www.ace-installer.com
Quote Reply
Re: SSI Prob :( In reply to
Not meaning to be rude, but is SSI enabled? Have you put .htaccess files in those directories to make sure that SSI is enabled. Maybe you can only have SSI on files with a certain extension on your new server?

Wil

Quote Reply
Re: SSI Prob :( In reply to
The file definitely ends with .shtml right?

Mods:http://wiredon.net/gt/download.shtml
Installations:http://wiredon.net/gt/
Quote Reply
Re: SSI Prob :( In reply to
Yeah, I have. Otherwise I wouldn't get the errors showing up saying the directive could not be completed properly Wink

Andy

webmaster@ace-installer.com
http://www.ace-installer.com
Quote Reply
Re: SSI Prob :( In reply to
Ok can you paste the path to the .shtml file and the path to the include because there is a big difference between

include="bla/include.txt"

and

include="/bla/include.txt"

Mods:http://wiredon.net/gt/download.shtml
Installations:http://wiredon.net/gt/
Quote Reply
Re: SSI Prob :( In reply to
If using include bla/filename.txt in my public_html folder (the root of the site) it works fine! IF I try and do it any further up the folder list it just gives me errors! Im sure I have tried almost everything possible. The most annoying thing is that it DOES work on the normal page, just not in these directories, which Links 2 builds Frown

Andy

webmaster@ace-installer.com
http://www.ace-installer.com
Quote Reply
Re: SSI Prob :( In reply to
Paul, I'll PM you the username and password to access the admin page, so you can see what code I am using for the category.html templates. I have to get off to work now, otherwise I would just post the code here Wink

Thanks

Andy

webmaster@ace-installer.com
http://www.ace-installer.com
Quote Reply
Re: SSI Prob :( In reply to
If you have a structure like:

public_html/links2/pages/index.shtml
public_html/bla/include.txt

.....then using

include virtual="bla/include.txt"

within a file in public_html will work, but if using a file such as index.shtml in the pages directory, you'd need

include virtual="/bla/include.txt"

Mods:http://wiredon.net/gt/download.shtml
Installations:http://wiredon.net/gt/
Quote Reply
Re: SSI Prob :( In reply to
Fixed it Smile

I had to use;

Code:
<!--#include virtual="../../newincludes/copyright.txt"-->


Thanks for the help though!

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: SSI Prob :( In reply to
Did you even try using the first forward slash as Paul recommended?


========================================
Buh Bye!

Cheers,
Me
Quote Reply
Re: SSI Prob :( In reply to
Yup. Don't worry though now, as it is all working fine now Smile

Andy

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!