August 25, 2005
In article <dekfea$1i4t$1@digitaldaemon.com>, Jarrett Billingsley says...
>
>"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.
>

They're basically the same, with one exception.  The 'require' function will barf if the targeted file isn't present, while 'include' will be a little more forgiving.  Just experiment a little and I'm sure you'll get it.

Also, keep in mind that you can use relative paths for both functions (eg. "../index.php" or "./scripts/foobar.php").

PHP Documentation:

http://us2.php.net/manual/en/function.include.php http://us2.php.net/manual/en/function.require.php

- EricAnderton at yahoo
August 26, 2005
Walter wrote:
> Thanks, 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.

http://www.w3schools.com/css/css_list.asp
August 26, 2005
In article <deiers$ijj$1@digitaldaemon.com>, Jarrett Billingsley says...
>
>"AJG" <AJG_member@pathlink.com> wrote in message news:defm1k$1hfo$1@digitaldaemon.com...
>> What you need, my man, is a little dynamic magic. What kind of server
>> setup are
>> you running?
>>
>> The simplest solution to your dilemma is SSI (server-side includes). This
>> is a
>> very straightforward way of including content from one file into many
>> other
>> files.
>>
>> So you would have:
>>
>> ~/nav.inc.html = contains navigation code.
>> ~/index.shtml  = contains index page.
>> ~/page1.shtml  = some other page.
>>
>> Then, in index.shtml and page1.shtml (and every other page you want the
>> nav menu
>> to appear in), you would INCLUDE nav.inc.html.
>>
>> The canonical way to do this is with the following:
>>
>> <!--#include file="nav.inc.html" -->
>>
>> For that to work, your server must support SSI, and the _container_ page
>> must be
>> named with a .shtml extension. The _included_ page can have any extension,
>> unless it, too, has SSI in it, in which case it must also be .shtml.
>
>That sounds like a good idea.  I'll have to check out if my server supports SSI.  Thanks for the suggestion!
>

It should... Apache 2.0.54 is your server, and I think by default SSI is enabled.  I haven't tested it.  If you wish to use it, try it out and let me know if it works.  If it doesn't, I'll dig deeper and fix it.

>> More elaborate solutions exist using Perl or PHP or even Apache magic, but
>> I
>> think the simplest, quickest one is SSI. Let me know if it works out for
>> you.
>
>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 :)
>

Yes, you have PHP 5.0.4 installed.  Any extra PHP modules you need can be easily installed.

Regards,
James Dunne
1 2 3 4 5 6 7 8 9
Next ›   Last »