Boat Drinks  

Go Back   Boat Drinks > General > Computer and Consoles

Reply
 
Thread Tools Display Modes
Old 08-01-2007, 13:34   #11
Admiral Huddy
HOMO-Sapien
 
Admiral Huddy's Avatar
 
Join Date: Jun 2006
Location: Chelmsford
Posts: 6,692
Default

Quote:
Originally Posted by Mark View Post
Huddy's (and my) suggestion doesn't require PHP, it uses SSI instead. You'll probably need to rename the files to .shtml for it to work.

If there are other reasons for switching to PHP (and there may well be), then sure, but it isn't the most optimal route for just doing includes.

All files to shtml.. What effect will that have?

EDIT - also, isn't the line I mentioned above just a comment line?
__________________

I just got lost in thought.. It was very unfamiliar territory.
Techie Talk | My gaming Blog | PC spec | The Admirals log

Last edited by Admiral Huddy; 08-01-2007 at 13:37.
Admiral Huddy is offline   Reply With Quote
Old 08-01-2007, 13:37   #12
Mark
Screaming Orgasm
 
Join Date: Jul 2006
Location: Newbury
Posts: 15,194
Default

You'll need to change any links that use .html to use .shtml. That's about it.

It all depends on the server configuration. Most sites I know use .shtml for SSI-enabled pages, but it's possible to configure a server so that isn't required. It's mostly down to your provider so I can't say what is likely to work and what isn't.
Mark is offline   Reply With Quote
Old 08-01-2007, 13:40   #13
Davey_Pitch
I iz speshul
 
Davey_Pitch's Avatar
 
Join Date: Jun 2006
Location: Liverpool
Posts: 6,296
Default

Quote:
Originally Posted by Mark View Post
Huddy's (and my) suggestion doesn't require PHP, it uses SSI instead. You'll probably need to rename the files to .shtml for it to work.

If there are other reasons for switching to PHP (and there may well be), then sure, but it isn't the most optimal route for just doing includes.
Assuming Huddy's server is already set up for PHP (and most paid for servers seem to be), then all he'd need to do is use

<?php include("nav.php"); ?>

And make a nav page called nav.php (which would really be nav.htm simply renamed to .php).
__________________

Our deepest fear is not that we are inadequate. Our deepest fear is that we are powerful beyond measure. It is our light, not our darkness, that most frightens us. Your playing small does not serve the world. There is nothing enlightened about shrinking so that other people won't feel insecure around you. We are all meant to shine as children do. It's not just in some of us; it is in everyone. And as we let our own lights shine, we unconsciously give other people permission to do the same. As we are liberated from our own fear, our presence automatically liberates others.
Davey_Pitch is offline   Reply With Quote
Old 08-01-2007, 13:42   #14
Admiral Huddy
HOMO-Sapien
 
Admiral Huddy's Avatar
 
Join Date: Jun 2006
Location: Chelmsford
Posts: 6,692
Default

Quote:
Originally Posted by Davey_Pitch View Post
Assuming Huddy's server is already set up for PHP (and most paid for servers seem to be), then all he'd need to do is use

<?php include("nav.php"); ?>

And make a nav page called nav.php (which would really be nav.htm simply renamed to .php).
that would be lovely.. Yes my provider is php enabled

do you have any php code sor site vav as I have?

edit - sorry I mis read your post.. just rename the nav.htm file to php?
__________________

I just got lost in thought.. It was very unfamiliar territory.
Techie Talk | My gaming Blog | PC spec | The Admirals log
Admiral Huddy is offline   Reply With Quote
Old 08-01-2007, 13:45   #15
Davey_Pitch
I iz speshul
 
Davey_Pitch's Avatar
 
Join Date: Jun 2006
Location: Liverpool
Posts: 6,296
Default

Quote:
Originally Posted by Admiral Huddy View Post
that would be lovely.. Yes my provider is php enabled

do you have any php code sor site vav as I have?

edit - sorry I mis read your post.. just rename the nav.htm file to php?
Yup, and you'll need to rename your test.htm to test.php as well That should hopefully sort it out
__________________

Our deepest fear is not that we are inadequate. Our deepest fear is that we are powerful beyond measure. It is our light, not our darkness, that most frightens us. Your playing small does not serve the world. There is nothing enlightened about shrinking so that other people won't feel insecure around you. We are all meant to shine as children do. It's not just in some of us; it is in everyone. And as we let our own lights shine, we unconsciously give other people permission to do the same. As we are liberated from our own fear, our presence automatically liberates others.
Davey_Pitch is offline   Reply With Quote
Old 08-01-2007, 13:46   #16
Welshy
Long Island Iced Tea
 
Join Date: Dec 2006
Location: Beds / Staffs
Posts: 218
Default

I thought you meant you'd looked at Counter Strike: Source code
__________________
Welshy is offline   Reply With Quote
Old 08-01-2007, 13:47   #17
Admiral Huddy
HOMO-Sapien
 
Admiral Huddy's Avatar
 
Join Date: Jun 2006
Location: Chelmsford
Posts: 6,692
Default

Cheers mark and Davey, will upload the suggested tests tonight!

Sorry for noobness.

Welsy - Report to my cabin for a spanking!
__________________

I just got lost in thought.. It was very unfamiliar territory.
Techie Talk | My gaming Blog | PC spec | The Admirals log
Admiral Huddy is offline   Reply With Quote
Old 08-01-2007, 13:49   #18
Davey_Pitch
I iz speshul
 
Davey_Pitch's Avatar
 
Join Date: Jun 2006
Location: Liverpool
Posts: 6,296
Default

No probs mate. Hopefully one or the other will work. My PHP knowledge is all theory at the moment, not had time to put it into practise yet (despite installing a PHP enabled Apache server on my own machine :/), so I may be a bit off.
__________________

Our deepest fear is not that we are inadequate. Our deepest fear is that we are powerful beyond measure. It is our light, not our darkness, that most frightens us. Your playing small does not serve the world. There is nothing enlightened about shrinking so that other people won't feel insecure around you. We are all meant to shine as children do. It's not just in some of us; it is in everyone. And as we let our own lights shine, we unconsciously give other people permission to do the same. As we are liberated from our own fear, our presence automatically liberates others.
Davey_Pitch is offline   Reply With Quote
Old 08-01-2007, 13:51   #19
Mark
Screaming Orgasm
 
Join Date: Jul 2006
Location: Newbury
Posts: 15,194
Default

SSI is still more efficient than PHP, but as it's not a high traffic site, it'll make precisely no difference whatsoever, so either option works.
Mark is offline   Reply With Quote
Old 08-01-2007, 14:11   #20
Davey_Pitch
I iz speshul
 
Davey_Pitch's Avatar
 
Join Date: Jun 2006
Location: Liverpool
Posts: 6,296
Default

More efficient in what way? Sever load?
__________________

Our deepest fear is not that we are inadequate. Our deepest fear is that we are powerful beyond measure. It is our light, not our darkness, that most frightens us. Your playing small does not serve the world. There is nothing enlightened about shrinking so that other people won't feel insecure around you. We are all meant to shine as children do. It's not just in some of us; it is in everyone. And as we let our own lights shine, we unconsciously give other people permission to do the same. As we are liberated from our own fear, our presence automatically liberates others.
Davey_Pitch is offline   Reply With Quote
Reply


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
Forum Jump


All times are GMT +1. The time now is 15:32.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.