The coding cannot find an SSI text...

User 109676 Photo


Registered User
21 posts

My web site is at http://www.binenbaum.org/

Because of the vast number of web pages with people’s names, I have separated the web pages of Countries into a separate folder named “Countries†. In this folder will be the web pages for about 30 separate countries.

Below is a small portion of the coding on the Ukraine.shtml web page. Using the below two examples, the web pages finds the graphics (map or logo) and places the graphics in the correct position on the web page.

<div align="center"><img src="/Graphics/Map_Ukraine.jpg" width="579" height="565" alt="" border="0" align="" /></div>

<div align="center"><a href="http://www.binenbaum.org/index.shtml">
<img src="/Graphics/bee_tree_logo.jpg" width="300" height="141" alt="" border="0" align="" /></a></div>

However using the same method of coding to find the many SSI (server-side scripting language) text files, the text files do not appear on the web page.

I have tried to change the coding to find the SSI text files by placing 2 dots in front of the forward slash, but this still does not work.
<!--#include file="../SSI/Notice_free_service.txt"-->

How do I have to write the coding in order to have the web pages find the SSI text files?

Thank you.
In addition to posting your reply to this Forum, can you please send a copy to my e-mail address:

Larry Schenker
Los Angeles, CA, USA
LPSCA@EARTHLINK.NET
User 463058 Photo


Ambassador
1,073 posts

You can also try this:

<!--#include virtual="../SSI/Notice_free_service.txt"-->
User 109676 Photo


Registered User
21 posts

Cary -

Thank you for your reply.

What you suggested did not work.

Can you please give me a private e-mail address, so I can send you a copy of the way the files are structured on File Manager.

My e-mail address is binenbaum@binenbaum.org.

Thank you in advance for any help that you can give to me.

Larry
In addition to posting your reply to this Forum, can you please send a copy to my e-mail address:

Larry Schenker
Los Angeles, CA, USA
LPSCA@EARTHLINK.NET
User 463058 Photo


Ambassador
1,073 posts

Well, that was just a shot in the dark. I don't know enough about using includes to tell why it isn't working. It may be that the server isn't configured for SSI, which I think would be unusual, and I don't know how you would fix that.

Perhaps it is configured for SSI and you can try this code instead:

<!--#include file="SSI/Notice_free_service.txt"-->

But it may be that the server doesn't like ".txt" and perhaps you should use ".html" or ".inc" instead for the included file, but I can't see why that would matter at all.
User 37670 Photo


Registered User
2,138 posts

Hi, just jumping in here with my 2 cents worth.

Either syntax is fine for most servers, #include file or #include virtual should work. If the pages you are calling it to are deeply burried inside of folder after folder, so maybe it needs a ../../SSI/Notice_free_service.txt"-->

The other thing to note is the true name of your SSI folder. If it happens to be called ssi, not SSI, that will make a big difference as CaPS mAy stOP it from wORkinG. Also to note, unless you put some text file inside a file called "SSI", you can and should drop the "SSI" part in your code. You can put your .txt file anywhere you want, even in the same directory as your web pages, so you won't even need to have an extra SSI folder at all.

Last note....
Did you check to see that SSI is indeed working properly on your web server?
Test if your server supports SSI:
insert the below code inside a webpage.
Save the page with a .shtml extension
test.shtml source:

<!--#echo var="DATE_LOCAL" -->

When you run the web page, you should see the local time and day displayed in your web browser. Don't burry this inside folders, just upload to the basic directory for your site. This will help to tell if your server has SSI installed correctly. Once you have that working, try uploading that code inside one of your country folders and test there. If it works there, than there is no need to try to point it to any SSI folder at all. One last note, SSI is not for Windows servers, so that might be something to check as well.

Let us know if any of this information helped. One other workaround if you can't get ssi to work is to use php includes instead, or even a .js file. That would still leave you with one file to modify instead of every page.

Good Luck
E-Learning Specialist
www.mainsites.ca is my website, and yes, some of it is crappy.
User 109676 Photo


Registered User
21 posts

Cliff Main and others

I am certain that SSI is working on my server, because if you can go to my web site at
http://www.binenbaum.org/
you will see all of the graphics (sign the guest book, I want mail, etc) and all of the SSI (ASK OUR RESEARCH EXPERTS, JOIN THE BINENBAUM RESEARCH SIG, ETC) are working just fine.

Also if you scroll down on the left hand panel to the area called "COUNTRY PAGES", and click on the Argentina Link, you can see that all of the relative paths still work fine.

I do not know how to post a picture of my File Manager on this site, but I have about 30 country files (Argentina, Australia, Austria, Belarus, etc.) and am adding over 500 names files (Banenbaum, Banenbaum, Beinenbaum, etc.). We will also have over 250 city files that I would like to place into the correct country folder (Cities_Argentina, Cities_Australia, Cities_Belarus, Cities_France, etc.).

Currently the 30 country files are mixed in with the name files and difficult to find. We have not yet added the over 250 city files, which will be every harder to find.

I want to take the 30 country files and place them into a separate folded called “Countries†and then the over 250 city files and place them into separate folders (a folder for each country) called “Cities_xxxx†.

Currently for the Argentina Country page (located in the root directory) to find the images files that are located in the Graphics folder I am using the below path coding for the four different graphics:
<img src="Graphics/I_want_mail.gif" width="220" height="123" alt="" border="0" align="" />

<img src="Graphics/Map_Argentina.jpg" width="579" height="800" alt="" border="0" align="" />

<img src="Graphics/bee_tree_logo.jpg" width="300" height="141" alt="" border="0" align="middle" />

<img src="Graphics/guestbook_banner.gif" width="400" height="40" alt="" border="0" align="left" />

Currently for the Argentina Country page to find the text files that are located in the SSI folder I am using the below path coding for the four different text files:
<!-- Start SSI -->
<!--#include file="SSI/links.txt"-->
<!-- End SSI -->

<!-- Start SSI -->
<!--#include file="SSI/fusionbot.txt"-->
<!-- End SSI -->

<!-- Start SSI -->
<!--#include file="SSI/Notice_free_service.txt"-->
<!-- End SSI -->
<!-- Start SSI -->
<!--#include file="SSI/email_request_1.txt"-->
<!-- End SSI -->

Now to my question, when I move the Argentina Country Page from its current position into the Country Folder, how must I change the path coding so that the Argentina Country Page will find the images in the Graphics Folder and the text in the SSI folders?

Thank you in advance for your assistance.
In addition to posting your reply to this Forum, can you please send a copy to my e-mail address:

Larry Schenker
Los Angeles, CA, USA
LPSCA@EARTHLINK.NET
User 463058 Photo


Ambassador
1,073 posts

In this situation you could add "../" to the beginning of image and include paths because all paths will now need to start in the folder above the html.

For example:

src="../Graphics/I_want_mail.gif"
<!--#include file="../SSI/links.txt"-->

Or you could just try adding "/" to the beginning of the paths. This would make the paths root relative so "/Graphics/I_want_mail.gif" always means "http://www.binenbaum.org/Graphics/I_want_mail.gif" regardless of where the html is located on the server.

For example:

src="/Graphics/I_want_mail.gif"
<!--#include file="/SSI/links.txt"-->
User 109676 Photo


Registered User
21 posts

Cory, Cliff Main and others

On a test page that has been placed into the Country Folder, with the below URL -
http://www.binenbaum.org/Countries/Argentinatest.shtml

I have added the ../ before the word Graphics for each of the images and this works perfectly.

For example (works perfectly):
<img src="../Graphics/Map_Argentina.jpg" width="579" height="800" alt="" border="0" align="" />

<img src="../Graphics/bee_tree_logo.jpg" width="300" height="141" alt="" border="0" align="middle" />

<img src="../Graphics/guestbook_banner.gif" width="400" height="40" alt="" border="0" align="left" />

However, when I place the same ../ before the SSI none of them work. I do know that the server supports SSI, because when I have the Argentina.shtml file in the root directly the SSI works perfectly.

For example (does not work at all):
<!--#include file="../SSI/links.txt"-->

<!--#include file="../SSI/fusionbot.txt"-->

<!--#include file="../SSI/Notice_free_service.txt"-->

What can anyone suggest that I try now?????

Thanks for your help!

Larry
In addition to posting your reply to this Forum, can you please send a copy to my e-mail address:

Larry Schenker
Los Angeles, CA, USA
LPSCA@EARTHLINK.NET
User 463058 Photo


Ambassador
1,073 posts

Did you try "/" instead of "../" ?
User 109676 Photo


Registered User
21 posts

Cory

I have tried both and neither works!


<!--#include file="../SSI/ask_our_research_experts.txt"-->


<!--#include file="/SSI/ask_our_research_experts.txt"-->

Larry
In addition to posting your reply to this Forum, can you please send a copy to my e-mail address:

Larry Schenker
Los Angeles, CA, USA
LPSCA@EARTHLINK.NET

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.