PDA

View Full Version : Header and SSI Problem



<|R0cKm@nX|>
June 7th, 2001, 19:59
Since I want a easier life updating my site, i will put headers and footers but these headers and footers can't contain SSI. I mean if u include header.shtm to your header, and if you put a poll for example in your header.shtm, if wont appear when u view the page. so how can i actually use javascript or anyother methods that can take over SSI?

lucifer
June 7th, 2001, 22:11
php would do what you want as it 'interprets' included pages which SSI don't.

you could use javascript but that would maybe not be the cleanest way

include a perl file which generates the header/footer is an option you could use with SSI

<|R0cKm@nX|>
June 8th, 2001, 02:29
i dun really get wat u mean
but is there any perl or php header scripts that allow ssi to be included in the header file?

lucifer
June 8th, 2001, 08:11
not sure I don't bother with SSI as php does the same and more

<|R0cKm@nX|>
June 8th, 2001, 08:38
php?
how php do header and footer with ssi items in the header and footer?

lucifer
June 8th, 2001, 09:51
I don't think it can but you could convert your SSI to php as php can do all that stuff and more

<|R0cKm@nX|>
June 8th, 2001, 10:25
but i will have a hard time updating the some many pages!
do u mean like that:
<? require ("http://www.dsf.com/sddf.php3"); ?><p>
<? virtual ("/dfsdv/sdfvdf.cgi"); ?> <p>
<? virtual ("/sdfcf/ddcsfvsd.pl"); ?><p>

then wat if i wanna get away a thing from everypage?
i hope i can get all this into a file and put:
<? require ("/sfsdfsxvsf/menu.shtml"); ?>
on every page.
so if i want to remove a thing, i juz go to the menu and remove 1 line code and every page will be updated.

lucifer
June 8th, 2001, 11:01
in pages put

<? include "theinclude.php3"; ?>



theinclude.php3

<? include "http://www.dsf.com/sddf.php3"; ?><br>
<? system ("/dfsdv/sdfvdf.cgi"); ?> <br>
<? system ("/sdfcf/ddcsfvsd.pl"); ?>


that should do it. You'd have to rename your pages .php3 or something like that for them to be run as php


this is a pain if your site is already up but you could use url rewritting to get round that though this is a big pain

then you'd only have one file to change

<|R0cKm@nX|>
June 8th, 2001, 11:13
my site has only put up half way and i have juz remade the graphics(very nice very nice :D) last nite.
umm..
i gotta try the method u said 2molo(2:12am now!)
so all my extensions must be in .php3?

<|R0cKm@nX|>
June 8th, 2001, 11:15
Originally posted by lucifer
in pages put

<? include "theinclude.php3"; ?>



theinclude.php3

<? include "http://www.dsf.com/sddf.php3"; ?><br>
<? system ("/dfsdv/sdfvdf.cgi"); ?> <br>
<? system ("/sdfcf/ddcsfvsd.pl"); ?>


that should do it. You'd have to rename your pages .php3 or something like that for them to be run as php


this is a pain if your site is already up but you could use url rewritting to get round that though this is a big pain

then you'd only have one file to change

do u mean i must put the include tags like this:
<? include "http://www.dsf.com/sddf.php3"; ?><br>
<? system ("/dfsdv/sdfvdf.cgi"); ?> <br>
<? system ("/sdfcf/ddcsfvsd.pl"); ?>
then it will work?

will it still work if i put:
<? require ("http://www.dsf.com/sddf.php3"); ?><p>
<? virtual ("/dfsdv/sdfvdf.cgi"); ?> <p>
<? virtual ("/sdfcf/ddcsfvsd.pl"); ?><p>

huh? :confused:

lucifer
June 8th, 2001, 11:35
no, cos it'll have to be php syntax not SSI



the future (A poem by lucifer)
=====

good bye - SSI






the files need to be .php3 though .php .phtml are used by some servers - else it won't know to run php

I swaped the <p> for <br> as you should have <p>...</p> for good practice and <br> is a compromise