SSI problem
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.
Justin Stayton - [email] [icq]
dangelo posted this at 23:12 — 31st January 2000.
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
-RJ D'Angelo
http://www.dangelowebdesign.com
http://sopranos.virtualave.net
[email protected]
chicken posted this at 00:52 — 1st February 2000.
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 posted this at 00:59 — 1st February 2000.
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.
Justin Stayton - [email] [icq]
John Pollock posted this at 05:05 — 1st February 2000.
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
Java Script: A Beginner's Guide
Page Resource
John Pollock posted this at 05:08 — 1st February 2000.
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.
Java Script: A Beginner's Guide
Page Resource
Justin S posted this at 05:20 — 1st February 2000.
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 Stayton - [email] [icq]
Justin S posted this at 14:36 — 1st February 2000.
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.
Justin Stayton - [email] [icq]
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.