August 24, 2005
Jarrett Billingsley wrote:
> Yeah, I really don't know anything about either, but I'm pretty sure my
> server supports PHP.  Maybe I'll look into that once I start with my web
> design class :)
>
>

While I am a big advocate of PHP, if all you want is to include snippets then your best bet would probably be SSI if its available.  Generally speaking the following SSI snip:

#    <div id="content">
#        <div id="nav">
#            <!--#include file="main.nav.html" -->
#            <!--#include file="sec1.nav.html" -->
#            <!--#include file="sec1a.nav.html" -->
#            <!--#include file="sec1b.nav.html" -->
#        </div>
#        <div id="main">
#            Some content text...
#        </div>
#        <div id="sidebar">
#            <!--#include file="main.sb.html" -->
#            <!--#include file="sec1.sb.html" -->
#        </div>
#    </div>
#    <!--#include file="footer.inc.html" -->

Is equivelant to the following PHP snip:

#    <div id="content">
#       <div id="nav">
#            <?php
#                require('main.nav.php');
#                require('sec1.nav.php');
#                require('sec1a.nav.php');
#                require('sec1b.nav.php');
#            ?>
#        </div>
#        <div id="main">
#            Some content text...
#        </div>
#        <div id="sidebar">
#            <?php
#                require('main.sb.php');
#                require('sec1.sb.php');
#            ?>
#        </div>
#    </div>
#    <?php require('footer.inc.php'); ?>

-- Chris S
PS - For complex dynamic pages, PHP is a god. ;)
August 24, 2005
In article <deiers$ijj$1@digitaldaemon.com>, Jarrett Billingsley says...
>
>Yeah, I really don't know anything about either, but I'm pretty sure my server supports PHP.  Maybe I'll look into that once I start with my web design class :)
>

Here's your 30-second crash-course in how to aggregate files in PHP:

index.php:

<html><body>
<? include("hello.php"); ?>
</body></html>


hello.php:

<p>Hello world!</p>

In a nutshell: anything in between the <? and ?> tokens is PHP code.  The include() function is just one of many in the PHP runtime/platform, and does what you'd expect.

- EricAnderton at yahoo
August 24, 2005
Ok, but why does it need to be XHTML rather than HTML?

"Unknown W. Brackets" <unknown@simplemachines.org> wrote in message news:deh146$13ar$1@digitaldaemon.com...
> Walter,
>
> You'll have to forgive me, I'm a crazy XHTML freak.
>
>
http://validator.w3.org/check?verbose=1&uri=http%3A//www.digitalmars.com/d/i ndex.html
>
> In short:
>
> border=1 cellpadding=8 cellspacing=0 -> border="1" cellpadding="8"
> cellspacing="0"
> nowrap> -> nowrap="nowrap">
> onFocus -> onfocus
> {this.value="";}'> -> {this.value="";}' />
> value="www.digitalmars.com"> -> value="www.digitalmars.com" />
> value="www.digitalmars.com/d"> -> value="www.digitalmars.com/d" />
> value="google-search"> -> value="google-search" />
> value="Go"> -> value="Go" />
> <hr><br> -> <hr /><br />
> <br> -> <br /> (lots of times)
> </td></table> -> </td></tr></table>
>
> I wish I had time to put into this myself - suggestions, comments other than validation, javascript code to highlight code snippets (assuming any of it would be worthwhile), but I don't just now...
>
> -[Unknown]
>
> > Improvement? Keep it?
> >
> > www.digitalmars.com/d/index.html
> >
> >


August 24, 2005
Hi,

In article <deim31$uon$1@digitaldaemon.com>, Walter says...
>
>Ok, but why does it need to be XHTML rather than HTML?

Truthfully, it doesn't have to be. HTML 4.01 is a perfectly fine, complete specification that is widely-supported. However, I think XHTML is by and large "the future," and it _might_ be a good idea to move in that direction.

In addition, XHTML tends to have greater semantic value for the web, because it
more cleanly separates visual/audial data ("presentation") from the actual
information ("content").

Of course, a pragmatist seldom cares about these ideals; if this conversion would require a large effort, I don't know if it'd be worth it. At the same time, I do think the pages should at least validate properly.

My 2 cents, tax-deductible.
--AJG.

>"Unknown W. Brackets" <unknown@simplemachines.org> wrote in message news:deh146$13ar$1@digitaldaemon.com...
>> Walter,
>>
>> You'll have to forgive me, I'm a crazy XHTML freak.
>>
>>
>http://validator.w3.org/check?verbose=1&uri=http%3A//www.digitalmars.com/d/i ndex.html
>>
>> In short:
>>
>> border=1 cellpadding=8 cellspacing=0 -> border="1" cellpadding="8"
>> cellspacing="0"
>> nowrap> -> nowrap="nowrap">
>> onFocus -> onfocus
>> {this.value="";}'> -> {this.value="";}' />
>> value="www.digitalmars.com"> -> value="www.digitalmars.com" />
>> value="www.digitalmars.com/d"> -> value="www.digitalmars.com/d" />
>> value="google-search"> -> value="google-search" />
>> value="Go"> -> value="Go" />
>> <hr><br> -> <hr /><br />
>> <br> -> <br /> (lots of times)
>> </td></table> -> </td></tr></table>
>>
>> I wish I had time to put into this myself - suggestions, comments other than validation, javascript code to highlight code snippets (assuming any of it would be worthwhile), but I don't just now...
>>
>> -[Unknown]
>>
>> > Improvement? Keep it?
>> >
>> > www.digitalmars.com/d/index.html
>> >
>> >


August 25, 2005
D Programming Language - DeclarationsThanks, I've incorporated many of your fixes. I balked at the replacement of &#183;, the problem is that although the font winds up the same size as in the old scheme, it takes up much more vertical space. Perhaps this is correctible with the style sheet, but I don't know how.

August 25, 2005
Philosophy aside, because it *says* it's XHTML:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">

Validating against HTML 4:

http://validator.w3.org/check?verbose=1&uri=http%3A//www.digitalmars.com/d/index.html&doctype=HTML%204.01%20Transitional

Which is basically just the /> and the xmlns.

-[Unknown]


> Ok, but why does it need to be XHTML rather than HTML?
August 25, 2005
That's what I get for cutting and pasting the line from an example. What should it say to be HTML 4?

"Unknown W. Brackets" <unknown@simplemachines.org> wrote in message news:dejbff$1sf3$1@digitaldaemon.com...
> Philosophy aside, because it *says* it's XHTML:
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
>
> Validating against HTML 4:
>
>
http://validator.w3.org/check?verbose=1&uri=http%3A//www.digitalmars.com/d/i ndex.html&doctype=HTML%204.01%20Transitional
>
> Which is basically just the /> and the xmlns.
>
> -[Unknown]
>
>
> > Ok, but why does it need to be XHTML rather than HTML?


August 25, 2005
Walter wrote:
> That's what I get for cutting and pasting the line from an example. What
> should it say to be HTML 4?

This is what you want:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>

-- Chris Sauls
August 25, 2005
Got it, thanks!


August 25, 2005
"Jarrett Billingsley" <kb3ctd2@yahoo.com> wrote in message news:deiers$ijj$1@digitaldaemon.com...

Thanks to both Chris Sauls and pragma!  I'll try those out and see which one I like better.