Old 28-08-2003, 07:58   #1 (permalink)
Mr Fred
Magazines™
 
Mr Fred's Avatar
 
Join Date: Mar 2003
Location: Glasgow..
Posts: 11,275
anyone used SSI

need a really quick lesson

got a new client who wants to use old hosting company - they dont have php on servers

you see where this is going

ant advice about server side includes

cheers
  Reply With Quote
Old 28-08-2003, 08:03   #2 (permalink)
oli
Free Ring Ding™
 
oli's Avatar
 
Join Date: Feb 2003
Location: Manchester
Posts: 9,522
__________________
..................
  Reply With Quote
Old 28-08-2003, 08:07   #3 (permalink)
Mr Fred
Magazines™
 
Mr Fred's Avatar
 
Join Date: Mar 2003
Location: Glasgow..
Posts: 11,275
how can i write the link info ie in php it would be

index.php?doc=translation (this would load translation in #include

am i being stupid here?
  Reply With Quote
Old 28-08-2003, 08:07   #4 (permalink)
Stickman
Dr. Lucien Sanchez
 
Stickman's Avatar
 
Join Date: Mar 2003
Location: UK
Posts: 5,628
I think there's issues with search engines. Don't quote me on that though...
  Reply With Quote
Old 28-08-2003, 08:15   #5 (permalink)
sleepingfish
css is for divs
 
sleepingfish's Avatar
 
Join Date: Feb 2003
Location: Norwich
Posts: 4,524
wouldn't dare
  Reply With Quote
Old 28-08-2003, 08:18   #6 (permalink)
Mr Fred
Magazines™
 
Mr Fred's Avatar
 
Join Date: Mar 2003
Location: Glasgow..
Posts: 11,275
that will do me stickman
  Reply With Quote
Old 28-08-2003, 08:26   #7 (permalink)
Bill Posters
trouble free and loverlee
 
Join Date: Mar 2003
Location: YooKay
Posts: 2,880
Worth checking out this Sitepoint article:

Search Engine-Friendly URLs

Actually, whilst tracking down that article Google turned up a number of articles.

Google:
"search engine friendly urls"

Not sure how many are duplicates, but all worth checking, I'd imagine.
  Reply With Quote
Old 28-08-2003, 08:27   #8 (permalink)
Stickman
Dr. Lucien Sanchez
 
Stickman's Avatar
 
Join Date: Mar 2003
Location: UK
Posts: 5,628
Quote:
Originally posted by sleepingfish
wouldn't dare

You still sulking?
  Reply With Quote
Old 28-08-2003, 08:36   #9 (permalink)
Brown
volkswagen yellow & gold
 
Brown's Avatar
 
Join Date: Apr 2003
Location: london, england.
Posts: 6,214
i love em. used them all over the place. the pain is setting up the server but i get someone else to do that.

<!--#include virtual="/includes/leftnav.inc" -->

pm me if you get stuck but its pretty simple.
  Reply With Quote
Old 28-08-2003, 08:46   #10 (permalink)
Mr Fred
Magazines™
 
Mr Fred's Avatar
 
Join Date: Mar 2003
Location: Glasgow..
Posts: 11,275
i have grasped the include bit

how do i now code my link tags to include an #inc into a space define on index page
  Reply With Quote
Old 28-08-2003, 09:39   #11 (permalink)
Brown
volkswagen yellow & gold
 
Brown's Avatar
 
Join Date: Apr 2003
Location: london, england.
Posts: 6,214
Quote:
Originally posted by japanmik
how do i now code my link tags to include an #inc into a space define on index page
eh? wha'that mean?

stick it in a div, or between some <td></td> or summat.

<table><tr><td>
<!--#include virtual="/includes/leftnav.inc" -->
</td></tr></table>

<div id="my-divvy-div">
<!--#include virtual="/includes/leftnav.inc" -->
</div>

or is that not what you meant?
  Reply With Quote
Old 28-08-2003, 09:41   #12 (permalink)
Brown
volkswagen yellow & gold
 
Brown's Avatar
 
Join Date: Apr 2003
Location: london, england.
Posts: 6,214
you can't call an include in like a frame. its part of the page, rendered on the server to html and sent to the browser.

use them for like nav's or footers or headers. geddit?

or don't i?
  Reply With Quote
Old 28-08-2003, 09:54   #13 (permalink)
Mr Fred
Magazines™
 
Mr Fred's Avatar
 
Join Date: Mar 2003
Location: Glasgow..
Posts: 11,275
well that completely defeats the object of #includes then doesnt it - what an utterly pointless technology

cant call an include in - then bollox - quick course in asp coming up

why you so stressed brown? not taking the tablets?

??

?!
  Reply With Quote
Old 28-08-2003, 09:56   #14 (permalink)
Stickman
Dr. Lucien Sanchez
 
Stickman's Avatar
 
Join Date: Mar 2003
Location: UK
Posts: 5,628
They are used for headers, footers, menus etc. It's not pointless technology - it's just a bit crap.
  Reply With Quote
Old 28-08-2003, 09:57   #15 (permalink)
Brown
volkswagen yellow & gold
 
Brown's Avatar
 
Join Date: Apr 2003
Location: london, england.
Posts: 6,214
too much work on. still havn't found my monkey. need help.

you can't do that with asp either.

use iframes, frames or divs, or, just think of a proper way of building your site.

#includes are so that you can isolate a pice of code and reuse it across a whole site, then make one small change to it and it automatically updates across the site. now that's not pointless.
  Reply With Quote
Old 28-08-2003, 10:06   #16 (permalink)
Mr Fred
Magazines™
 
Mr Fred's Avatar
 
Join Date: Mar 2003
Location: Glasgow..
Posts: 11,275
Quote:
Originally posted by Brown
too much work on. still havn't found my monkey. need help.

you can't do that with asp either.

use iframes, frames or divs, or, just think of a proper way of building your site.

#includes are so that you can isolate a pice of code and reuse it across a whole site, then make one small change to it and it automatically updates across the site. now that's not pointless.


aarrgghhhhh

the proper way would be to use coldfusion, asp. or php etc _ i can code all of these "good" sensible technologies to do all this to solve the problem. the problem is the server does not have any of these technologies

i dont think you have grasped what i am trying to do - this is due to my crap explanation.

ie <?php include('dsp_mainbar.php'); ?> for the include and this code to send all commands back though the index page and output in the same div location

<?php

//Test to see if there is any URL variable?

if(isset($HTTP_GET_VARS['doc']))
{
//If so then set $doc with the URL.variable
$doc = $HTTP_GET_VARS['doc'];
//The switch statement begins here
switch($doc)
{
case "services":

include("dsp_services.php");

break;

case "about":

include("dsp_about.php");

break;

whatever, i have decided to hard code the pages

and end to the matter......
  Reply With Quote
Old 28-08-2003, 10:07   #17 (permalink)
Mr Fred
Magazines™
 
Mr Fred's Avatar
 
Join Date: Mar 2003
Location: Glasgow..
Posts: 11,275
thanks to all for the advice folks
  Reply With Quote
Old 28-08-2003, 10:24   #18 (permalink)
Brown
volkswagen yellow & gold
 
Brown's Avatar
 
Join Date: Apr 2003
Location: london, england.
Posts: 6,214
document.write
  Reply With Quote
Old 28-08-2003, 11:08   #19 (permalink)
Bill Posters
trouble free and loverlee
 
Join Date: Mar 2003
Location: YooKay
Posts: 2,880
Quote:
Originally posted by Brown
document.write


BURN THE WITCH!! BURN THE WITCH!!
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8