httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Roland" <jrol...@roland.net>
Subject Re: SSI and PHP on the same web page
Date Mon, 12 Aug 2002 04:43:37 GMT
If you're looking to include files, why not just use a single PHP statement:
<? include_once("somefile.html"); ?>


----- Original Message ----- 
From: "Glen Lee Edwards" <glen@fcwm.org>
To: <users@httpd.apache.org>
Sent: Sunday, August 11, 2002 11:33 PM
Subject: Re: SSI and PHP on the same web page


> On Sunday 11 August 2002 10:57 pm, Michael Warwick wrote:
> > I have used SSI to include a php script. Not sure what settings made
> > it work. Generally it is easier to just to do with php what you would
> > have done with SSI, use include() or require() to include other
> > files, exec() to execute system commands or $ENV_xxx to access
> > environment variables. Also using just php avoids double handling
> > which will slow down the delivery of your pages.
> 
> Michael,
> 
> I wish it was that easy.  I'm providing hosting for web site developers 
> who run the gamut from "don't know what ftp is" to fairly geeky.  Some 
> want SSI, some PHP.  At this point I have PHP working on .html and 
> .php[x], and SSI working on .shtml.  If they want SSI on .html they'll 
> have to do your approach.  If they want PHP on .shtml they have to SSI 
> it.
> 
> Glen
> 
> 
> > -----Original Message-----
> > From: Glen Lee Edwards [mailto:glen@fcwm.org]
> > Sent: Monday, 12 August 2002 3:44 p.m.
> > To: users@httpd.apache.org
> > Subject: SSI and PHP on the same web page
> >
> >
> > Is there a way to get SSI and PHP to both work on the same web page? 
> > I haven't figured out how to configure Apache to do so.
> >
> > Glen
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message