08-01-2007, 15:14 | #21 |
Screaming Orgasm
Join Date: Jul 2006
Location: Newbury
Posts: 15,194
|
Yup, I believe so. PHP is a whole language with lots of overheads. SSI is pretty simple (and built into the web server).
It used to be the case many years ago that SSI performance sucked, but I've been reassured that isn't the case now. |
08-01-2007, 16:04 | #22 |
HOMO-Sapien
Join Date: Jun 2006
Location: Chelmsford
Posts: 6,692
|
Mark, the line of code I quoted above, is that correct because it comes out as a comment line?
ps - stop changing your name - you know I'm easily confussed
__________________
I just got lost in thought.. It was very unfamiliar territory. Techie Talk | My gaming Blog | PC spec | The Admirals log |
08-01-2007, 16:17 | #23 |
I iz speshul
Join Date: Jun 2006
Location: Liverpool
Posts: 6,296
|
At a guess I'd remove the
<!-- and -->
__________________
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. |
08-01-2007, 16:17 | #24 |
Screaming Orgasm
Join Date: Jul 2006
Location: Newbury
Posts: 15,194
|
New name is temporary until I can think up a new moniker. I'm tired of all the old ones. Too much baggage in one case, too long in another, and the others were only for the holidays anyway.
And yes, as far as I can tell, the code you used was correct, and (for Davey's benefit), that's including the <!-- and -->. |
08-01-2007, 17:42 | #25 |
The Stig
Join Date: Jul 2006
Location: Fightertown USA
Posts: 1,458
|
The SSI is handled by the server and the line of code replaced with the file to be included before the browser interprets the HTML. As a result the fact that it shares the same syntax as an HTML comment is irrelvant. It's probably done that way so that if the SSI fails for any reason and the include instruction is passed to the browser it'll then see that as a comment and ignore it.
|
08-01-2007, 17:55 | #26 |
Long Island Iced Tea
Join Date: Dec 2006
Location: Beds / Staffs
Posts: 218
|
__________________
|
08-01-2007, 18:15 | #27 |
Screaming Orgasm
Join Date: Jul 2006
Location: Newbury
Posts: 15,194
|
No, in other words, the comment tags are required.
SSI won't work without them. |
08-01-2007, 18:16 | #28 |
I iz speshul
Join Date: Jun 2006
Location: Liverpool
Posts: 6,296
|
Aye, I realised that and deleted my post.
__________________
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. |
12-01-2007, 10:52 | #29 |
HOMO-Sapien
Join Date: Jun 2006
Location: Chelmsford
Posts: 6,692
|
Yay - it works
http://www.admiralcomputers.co.uk/test2.shtml I've noticed, quite obviously thinking about it, that the "include" actually copies in the code from the html code rather than calls it as a seperate procedure. I can now make a quick fix to the other pages without the hassle of dupilcating all that damn code. EDIT - Does any one know how I can make the table semi-tranparent?
__________________
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; 12-01-2007 at 10:54. |
12-01-2007, 15:02 | #30 |
The Stig
Join Date: Jul 2006
Location: Fightertown USA
Posts: 1,458
|
I seem to recall that IE can't deal with transparency properly so it's generally best not to bother.
|