|
|
Server Side Includes
|
|
|
|
Mac Elite
Join Date: Jan 2002
Location: College in the Land of Oz
Status:
Offline
|
|
I am trying to enable Server Side Includes on my OS X webserver, but they just won't work. I uncommented :
AddType text/html .shtml
AddHandler server-parsed .shtml
and then even threw in Options +Includes as well. Server still isn't parsing calls in .shtml files. I have tried the XBitHack. I also couldnt get MySql to configure properly, but that is not my concern right now. Has anyone had success with SSI on OS X, and what can I do to make this work?
|
|
|
|
|
|
|
|
|
Senior User
Join Date: Sep 2000
Location: Denver, CO, USA
Status:
Offline
|
|
dumb question, but did you restart the webserver? what happens when you attempt to load a page with ssi?
|
|
|
|
|
|
|
|
|
Senior User
Join Date: Sep 2000
Location: Shallow Alto, CA
Status:
Offline
|
|
You could use PHP includes instead.
<BLOCKQUOTE><font size="1"face="Geneva, Verdana, Arial">code:</font><HR><pre><font size=1 face=courier> <?php include <font color = red>"path to include"</font> ?> </font>[/code]
I think that's the syntax...tired. Since all my pages are PHP I just parse .html pages and don't ever use the PHP extension.
|
|
|
|
|
|
|
|
|
Moderator Emeritus
Join Date: Mar 2001
Location: Austin, MN, USA
Status:
Offline
|
|
Originally posted by foamy:
<STRONG>Since all my pages are PHP I just parse .html pages and don't ever use the PHP extension.</STRONG>
All mine are PHP too. I thought about just parsing .html but I like .php and I think it makes more sense anyway.
|
|
|
|
|
|
|
|
|
Registered User
Join Date: Apr 2000
Location: Melbourne, Australia
Status:
Offline
|
|
I can't get Server Side Includes (SSI) working on MacOS 10.1.3 Client either. Does anyone have any tips? Is it simply a matter of editing "httpd.conf" file? (By the way... I've got PHP working just fine - great). Thanks.
|
|
|
|
|
|
|
|
|
GUI Punk
Join Date: Jan 2002
Location: S.E. Mitten
Status:
Offline
|
|
Originally posted by Xeo:
<STRONG>All mine are PHP too. I thought about just parsing .html but I like .php and I think it makes more sense anyway.</STRONG>
Excuse my igonorance in this area but what is the advantage/difference of html to PHP?
Thankyouverymuch.
|
24" AlumiMac 2.4ghz C2D, 4g Ram, 300g HD, 750g USBHD • 80g iPod • 160g ATV • iPhone 3g
|
|
|
|
|
|
|
|
Dedicated MacNNer
Join Date: Jan 2002
Location: Massachoosetts
Status:
Offline
|
|
I got SSI to work after I read an article on Oreilly.net, which worked for me. YMMV, but it worked fine when I tried a few pages. I did dump it though for MySQL and PHP.
[ 03-29-2002: Message edited by: goatnet ]
|
They laughed at my Mac, it had no CLI. They laughed at Linux, it had no GUI. I installed MacOS X, and shut them up.
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Nov 1999
Status:
Offline
|
|
Originally posted by swiz:
<STRONG>Excuse my igonorance in this area but what is the advantage/difference of html to PHP?
Thankyouverymuch.</STRONG>
If you're talking about just using the file extension .html vs. .php, then the only advantage is that people won't know you're using PHP. Some companies think that they get a "competitive edge" if people don't know the system that they are using. The same thing happens a lot with WebObjects, which has a surprisingly high marketshare, but you wouldn't know it because companies don't often tell people they're using it (The U.S. Postal Service actually powers their whole intranet with it, to give one example).
|
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|