Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
Old 03-27-2010, 07:41 PM SSI on a local site
Junior Talker

Posts: 4
Name: Tyler Melendez
Trades: 0
Ok, so my first every question here was me trying to remember what SSIs were. Well now on a totally different project I'm having trouble. This time instead of working directly through FTP on the server I have all the files local.

My problem is, SSI isn't working. I'm sure its because unlike the servers, its not setup. So I was wondering how I could do that locally? But I did publish the files to my server and didn't seem to get anything out of that either. My host is GoDaddy and in the past they have always ran it fine.

Page with the include(at the bottom):
Quote:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
html, body {
width: 100%;
}
body {
margin: 0;
padding: 0;
}
#navbar {
position:relative;
top:50px;
min-width:100%;
height:30px;
background-color: #fdb82f;
}
-->
</style>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="navbar"></div>

<!--#include file="navbar.html" -->
</body>
</html>
Actual include:
Quote:
<style type="text/css">
<!--
#home {
position: absolute;
left: 265px;
top: 6px;
}
#services {
position: absolute;
left: 320px;
top: 6px;
}
#whyus {
position: absolute;
left: 380px;
top: 6px;
}
#portfolio {
position: absolute;
left: 440px;
top: 6px;
}
#contact {
position: absolute;
left: 500px;
top: 6px;
}
-->
</style>

<link href="style.css" rel="stylesheet" type="text/css">
<div class="nav-boldwhite" id="home">Home</div>
<div class="nav-boldwhite" id="services">Serives</div>
<div class="nav-boldwhite" id="whyus">Why Us?</div>
<div class="nav-boldwhite" id="portfolio">Portfolio</div>
<div class="nav-boldwhite" id="contact">Contact Us</div>
blackflame is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-27-2010, 07:59 PM Re: SSI on a local site
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
SSI (Server Side Includes), as the name implies ONLY works when the files are on a web server that is enabled for SSI.

Also the file extension must be set to use includes
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?

Last edited by chrishirst; 03-27-2010 at 08:00 PM..
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-27-2010, 09:50 PM Re: SSI on a local site
Junior Talker

Posts: 4
Name: Tyler Melendez
Trades: 0
Quote:
Originally Posted by chrishirst View Post
SSI (Server Side Includes), as the name implies ONLY works when the files are on a web server that is enabled for SSI.

Also the file extension must be set to use includes
gotchya. I wasn't sure if there was some file I could have used. When looking around I heard people saying you have to use the .shtml extension but...I have never ever had to change them and I have gotten SSIs to work multiple times...Is the reason why possibly the host and how their servers are setup?
blackflame is offline
Reply With Quote
View Public Profile
 
Old 03-28-2010, 06:04 AM Re: SSI on a local site
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Quote:
.Is the reason why possibly the host and how their servers are setup?
Possibly

It's simple enough to set SSI to work on any extension you need it to.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 03-31-2010, 08:44 PM Re: SSI on a local site
Novice Talker

Posts: 5
Name: Wallace
Location: Toronto, Canada
Trades: 0
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
html, body {
width: 100%;
}
body {
margin: 0;
padding: 0;
}
#navbar {
position:relative;
top:50px;
min-width:100%;
height:30px;
background-color: #fdb82f;
}
-->
</style>
<link href="style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="navbar"><!--#include file="navbar.html" --></div>

</body>
</html>

That's the way you need to do it. I have a question about SSI's but I'll create my own thread about that.
Wallace is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to SSI on a local site
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.25561 seconds with 12 queries