You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Gare <ga...@wanadoo.es> on 2005/10/31 18:19:46 UTC

[users@httpd] Dinamically adding content

How could the server add content to a web page as it's server?
I mean that I would like to add a head or a foot to every page served by my 
Apache server.

Thanks



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Dinamically adding content

Posted by Joshua Kogut <jm...@gmail.com>.
Hmmm. I've never thought of that. For me it would be easier to just add an
auto include. I found the Apache manual's coverage on SSI to be spotty at
best.

On 10/31/05, Joost de Heer <sa...@xs4all.nl> wrote:
>
> > If you want to add your header/footer without anything at all in the
> page
> > controlling it, you can do that with mod_publisher.
>
> Or mod_layout.
>
> Joost
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


--
|| jmkogut ||
email: jmkogut@gmail.com
|| Networking: Where all your problems are category 5. ||

Re: [users@httpd] Dinamically adding content

Posted by Joost de Heer <sa...@xs4all.nl>.
> If you want to add your header/footer without anything at all in the page
> controlling it, you can do that with mod_publisher.

Or mod_layout.

Joost


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Dinamically adding content

Posted by Nick Kew <ni...@webthing.com>.
On Monday 31 October 2005 17:19, Gare wrote:
> How could the server add content to a web page as it's server?
> I mean that I would like to add a head or a foot to every page served by my
> Apache server.

Read the Apache manual page about SSI, which is far simpler and less hassle
than a scripting solution.

If you want to add your header/footer without anything at all in the page
controlling it, you can do that with mod_publisher.

-- 
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Dinamically adding content

Posted by James Benson <jb...@jamesbenson.co.uk>.
Using server-side scripting such as PHP





Gare wrote:
> How could the server add content to a web page as it's server?
> I mean that I would like to add a head or a foot to every page served by 
> my Apache server.
> 
> Thanks
> 
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 
> 
> .
> 

Re: [users@httpd] Dinamically adding content

Posted by Joshua Kogut <jm...@gmail.com>.
Well, this is a large topic, but simply put, you need to install php. Then,
in the php config file, put an auto prepend to the file that you want to
include before, and an auto append that you want to include afterwards. If
you need any help, email me at <tr...@gmail.com>.

On 10/31/05, Gare <ga...@wanadoo.es> wrote:
>
> Yes, but how do it?
> I think it must be an script (php or pelr) that runs every time a page is
> served. But how must I do it? Do you know any example?
> Thanks
>
>
> ----- Original Message -----
> From: "James Benson" <jb...@jamesbenson.co.uk>
> To: <us...@httpd.apache.org>
> Sent: Monday, October 31, 2005 7:31 PM
> Subject: Re: [users@httpd] Dinamically adding content
>
>
> > Using server-side scripting such as PHP
> >
> >
> >
> >
> >
> > Gare wrote:
> >> How could the server add content to a web page as it's server?
> >> I mean that I would like to add a head or a foot to every page served
> by
> >> my Apache server.
> >>
> >> Thanks
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> The official User-To-User support forum of the Apache HTTP Server
> >> Project.
> >> See <URL:http://httpd.apache.org/userslist.html> for more info.
> >> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> >> " from the digest: users-digest-unsubscribe@httpd.apache.org
> >> For additional commands, e-mail: users-help@httpd.apache.org
> >>
> >>
> >>
> >> .
> >>
> >
> ----- Original Message -----
> From: "Gare" <ga...@wanadoo.es>
> To: <us...@httpd.apache.org>
> Sent: Monday, October 31, 2005 6:19 PM
> Subject: [users@httpd] Dinamically adding content
>
>
> > How could the server add content to a web page as it's server?
> > I mean that I would like to add a head or a foot to every page served by
> > my Apache server.
> >
> > Thanks
> >
> >
> >
> > ---------------------------------------------------------------------
> > The official User-To-User support forum of the Apache HTTP Server
> Project.
> > See <URL:http://httpd.apache.org/userslist.html> for more info.
> > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> > " from the digest: users-digest-unsubscribe@httpd.apache.org
> > For additional commands, e-mail: users-help@httpd.apache.org
> >
> >
>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>


--
|| jmkogut ||
email: jmkogut@gmail.com
|| Networking: Where all your problems are category 5. ||

Re: [users@httpd] Dinamically adding content

Posted by Gare <ga...@wanadoo.es>.
Yes, but how do it?
I think it must be an script (php or pelr) that  runs every time a page is 
served. But how must I do it? Do you know any example?
Thanks


----- Original Message ----- 
From: "James Benson" <jb...@jamesbenson.co.uk>
To: <us...@httpd.apache.org>
Sent: Monday, October 31, 2005 7:31 PM
Subject: Re: [users@httpd] Dinamically adding content


> Using server-side scripting such as PHP
>
>
>
>
>
> Gare wrote:
>> How could the server add content to a web page as it's server?
>> I mean that I would like to add a head or a foot to every page served by 
>> my Apache server.
>>
>> Thanks
>>
>>
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server 
>> Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>>
>> .
>>
>
----- Original Message ----- 
From: "Gare" <ga...@wanadoo.es>
To: <us...@httpd.apache.org>
Sent: Monday, October 31, 2005 6:19 PM
Subject: [users@httpd] Dinamically adding content


> How could the server add content to a web page as it's server?
> I mean that I would like to add a head or a foot to every page served by 
> my Apache server.
>
> Thanks
>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
> 



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org