[CLUE-Tech] PHP or CSS question

Kevin Cullis kevincu at orci.com
Sat Nov 17 23:29:27 MST 2001


Mike,

OK, what would the footer.html contain?  Just the HTML code?

Kevin

Mike Staver wrote:
> 
> Kevin, here is a quick explination of the code Joe sent you:
> 
> <?
>  include('footer.css');
>  include('footer.php');
>  include('footer.html');
> ?>
> 
> Alright, the <? just sets off the php. Meaning, if you want to start
> using php code, it all has to be in between <? and ?>.  You can put as
> much, or as little code inside that. I included the other include lines
> to show you that it doesn't matter what file you include, they can all
> be included. A practical application using this code would be:
> 
> <html>
> <head>
>   <title>Test Page</title>
> </head>
> <body bgcolor="ffffff">
> 
> <p>Hell, this is a test.</p>
> 
> <?
>  include('footer.html');
> ?>
> 
> </body>
> </html>
> 
> The "include" statement simply tells the page to include whatever
> template you're feeding it.  Usually, you put a ; after each line of
> code in php.  It helps the php processor know when the end of a line is.
> Then, the ?> just tells the php processor to stop reading php code, and
> just spit out the rest of the HTML.  Does this help?
> 
> Kevin Cullis wrote:
> >
> > Joe 'Zonker' Brockmeier wrote:.
> > > >
> > > > The key issue that I'm wondering is: "in the HTML beginning", each and
> > > > every style was located throughout a "document" while CSS now locates
> > > > styles in one place, could PHP, without the use of CSS, just allow me to
> > > > design just one footer that has all of the normal HTML tags but use PHP
> > > > to "call" the one file throughout the web site. I'm trying to think
> > > > outside of a CSS/PHP box here: could a normal footer (such as company
> > > > name, address, and email address on each web page) be "cut and pasted"
> > > > into a PHP code that would have the simple HTML code displayed for each
> > > > page?
> > >
> > > Yes, this is pretty trivial to do with PHP. All you need is something
> > > like
> > >
> > > <?
> > > include("footer.html");
> > > ?>
> > >
> > > in each file on your site that you want to have a footer.
> > >
> > > And have all the footer stuff located in "footer.html"
> >
> > Zonker, don't think of it as trivial, think of it as using KISS!  I once
> > had a friend tell me to use PERL script to remove the HTML tags from an
> > HTML table and the resulting text could be used elsewhere.  Well, first
> > off I don't know PERL, but I was able to use vim and the paste command
> > to do the same thing with a "cut and paste" to start the task. While I
> > appreciate his demonstration of PERL for larger projects, it was too
> > much work for my simple stuff.
> >
> > I'll check out the PHP script and report back as to how it worked. Has
> > anyone tried the above idea in other ways?
> >
> > Thanks for the info, Zonker.
> >
> > Kevin
> > _______________________________________________
> > CLUE-Tech mailing list
> > CLUE-Tech at clue.denver.co.us
> > http://clue.denver.co.us/mailman/listinfo/clue-tech
> 
> --
> 
>                                 -Mike Staver
>                                  staver at fimble.com
>                                  mstaver at globaltaxnetwork.com
>                                  http://www.fimble.com/staver
> _______________________________________________
> CLUE-Tech mailing list
> CLUE-Tech at clue.denver.co.us
> http://clue.denver.co.us/mailman/listinfo/clue-tech

-- 

"Success is never final, failure is never fatal" - Kevin Cullis
---
Kevin Cullis
kcullis at coloradoexcellence.org
303-893-CPEX (2739)
Colorado Performance Excellence, Inc
http://www.coloradoexcellence.org



More information about the clue-tech mailing list