Including files

This is a discussion on Including files within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi all, I wrote a script and a style sheet, that I want to use everywhere on my website. I ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-15-2005
Vincent
 
Posts: n/a
Default Including files

Hi all,

I wrote a script and a style sheet, that I want to use everywhere on my
website. I don't want to change my template for each directory, so is
there a way tomake those 2 files in each folder available?

Thanks

Vincent

  #2 (permalink)  
Old 08-15-2005
Els
 
Posts: n/a
Default Re: Including files

Vincent wrote:

> Hi all,
>
> I wrote a script and a style sheet, that I want to use everywhere on my
> website. I don't want to change my template for each directory, so is
> there a way tomake those 2 files in each folder available?


How does the 'template' now call the stylesheet?
If you just use an absolute url to link to the stylesheet and the
script, you won't have to change it for each directory.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
  #3 (permalink)  
Old 08-15-2005
Vincent
 
Posts: n/a
Default Re: Including files

Currently I'm designing the style sheets, so all the files are in one
single folder, but when I want to apply the style sheets to all my
pages, I have to add "../" or "../../" (etc) to the urls. It's
impossible to use absolute urls, because the address of my server isn't
always the same.

  #4 (permalink)  
Old 08-15-2005
Els
 
Posts: n/a
Default Re: Including files

Vincent wrote:

> Currently I'm designing the style sheets, so all the files are in one
> single folder, but when I want to apply the style sheets to all my
> pages, I have to add "../" or "../../" (etc) to the urls. It's
> impossible to use absolute urls, because the address of my server isn't
> always the same.


The address of the server doesn't matter.
"/css/style.css" is always from the root. No matter from which
directory or on which server you use it.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: The Eagles - Heartache Tonight
  #5 (permalink)  
Old 08-15-2005
Vincent
 
Posts: n/a
Default Re: Including files

Hey, I didn't know this. I'm very greatful.

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:27 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0