SSI problem

Justin S's picture

They have: 2,076 posts

Joined: Jun 1999

Ok- I've havn't used SSI in a while, so I'm a little rusty. I use the following SSI command:

code:

<!--#include virtual="/home/username/public_html/netstatus.txt"-->
[/code]

The problem I'm having is that the page with that SSI won't show up. I guess it's because the files they are calling arn't working. They are on the server, and I uploaded them in binary mode. How should I upload them? In ASCII mode and CHMOD them?

------------------
Justin S. 

They have: 152 posts

Joined: Dec 1999

Huh, I have never used that particular way to call up a text file. I usually use:

<!--#include file="whatever.txt"-->, ok, but thats beside the point.

I transfer everything in Binary and keep it chmoded at whatever the default is and it works fine for me. If you are doing something different than that may be the problem.

------------------
-RJ D'Angelo
D'Angelo Web Design

http://www.dangelowebdesign.com

They have: 98 posts

Joined: Jan 2000

In my experience, it works as the the previous person described. Forget all the home/yadda/yadda stuff and just place the .txt file in your home directory and call it as he/she said above.

(I call it from any directory with that, but have been using "/yadda.txt". Doubt the slash has any effect, but if it doesn't work, you may want to add the slash. It just works and I really hadn't thought about it, heh.

Live Hosting Chat! at http://www.HostHideout.com

Justin S's picture

They have: 2,076 posts

Joined: Jun 1999

Ok- well I tried doing what you said D'Angelo, but it still didn't work. Here is the page URL (you have to look at the source): http://www.flamehosting.com/small.html

The SSI is at the very bottom of source on the right... Help!

------------------
Justin S.

John Pollock's picture

He has: 628 posts

Joined: Mar 1999

Justin, try this.. it should do the trick:

<!--#include virtual="netstatus.txt"-->

You use the include virtual, but link it like you would a normal local link rather than a cgi type pathname.

------------------
John Pollock
http://www.pageresource.com
http://www.javascriptcity.com

John Pollock's picture

He has: 628 posts

Joined: Mar 1999

Are you sure the host has SSI enabled? If that didn't work you should speak with your host to see if the have a special command or if they even have it working.

Justin S's picture

They have: 2,076 posts

Joined: Jun 1999

Doh- I feel so stupid. Of course I had everything checked... Everything except re-naming the file .shtml instead of .html

Oh well- It works now

------------------
Justin S.

Justin S's picture

They have: 2,076 posts

Joined: Jun 1999

John - thanks for the help, but it didn't work. I have the domainlookup.txt file in the same directory (uploaded in binary), and everything else I can think of is ok. What's the problem?

------------------
Justin S.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.