RE: [PHP] Banner Ad Serving...

2002-07-24 Thread Dave at Sinewaves.net

Here's the URL for mod_layout if anybody's interested...

http://software.tangent.org/projects.pl?view=mod_layout

It's powerful, but just a little heftier than what I want.  Since all I need
is .html and .htm support, I think I'm just going to end up modifying my
http.conf - I'd rather mess with Apache a little versus giving PHP another
mod to stress over.

PHP makes a good pipe.  :D

Thanks again, everybody.  I love this list!

Dave



-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 11:13 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Banner Ad Serving...


On Wednesday 24 July 2002 12:07, Dave at Sinewaves.net wrote:
 I think you may have it on that one!  You get the gold star! :)

 Thanks for the help -- I probably would have banged my head against my
 keyboard for another week or so before I thought of that!

Or you can use something called mod_layout.

--
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
I'm not even going to *__bother* comparing C to BASIC or FORTRAN.
-- L. Zolman, creator of BDS C
*/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Banner Ad Serving...

2002-07-24 Thread Jeff Bearer

You can also checkout OASIS

http://oasis.sourceforge.net/

It's pretty good software, but i'm unable to use it here because it
doesn't have as man features as OAS from RealMedia which my manager is
used to.

http://www.realmedia.com

It's expensive and doesn't really integrate into PHP. but it's very
indepth.


On Tue, 2002-07-23 at 23:47, Dave at Sinewaves.net wrote:
 Is there any way of automatically adding a certain bit of code to every page
 on a web server (or within a given directory)?
 
 As in, is there any kind of Apache-specific PHP stuff that will add a banner
 ad or copyright notice to pages (without editing the actual pages themselves
 and without changing their file names)?  I've looked around a bit, and I
 can't seem to brainstorm how it could be done.
 
 Any help will be greatly appreciated (with good karma to boot). :)
 
 Dave
 
 
 -- 
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 
-- 
Jeff Bearer, RHCE
Webmaster, PittsburghLIVE.com
2002 EPpy Award Winner, Best Newspaper Website


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Banner Ad Serving...

2002-07-23 Thread Martin Towell

use the auto_append or auto_prepend directives in the php.ini file

-Original Message-
From: Dave at Sinewaves.net [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 24, 2002 1:48 PM
To: PHPlist
Subject: [PHP] Banner Ad Serving...


Is there any way of automatically adding a certain bit of code to every page
on a web server (or within a given directory)?

As in, is there any kind of Apache-specific PHP stuff that will add a banner
ad or copyright notice to pages (without editing the actual pages themselves
and without changing their file names)?  I've looked around a bit, and I
can't seem to brainstorm how it could be done.

Any help will be greatly appreciated (with good karma to boot). :)

Dave


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Banner Ad Serving...

2002-07-23 Thread Jason Wong

On Wednesday 24 July 2002 11:47, Dave at Sinewaves.net wrote:
 Is there any way of automatically adding a certain bit of code to every
 page on a web server (or within a given directory)?

php.ini -- auto_prepend_file, auto_append_file

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
An eye in a blue face
Saw an eye in a green face.
That eye is like this eye
Said the first eye,
But in low place,
Not in high place.
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Banner Ad Serving...

2002-07-23 Thread Dave at Sinewaves.net

That works fine for files with .php extensions, but I need something to add
code to html pages as well...  Any ideas???

Dave



-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 8:55 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Banner Ad Serving...


On Wednesday 24 July 2002 11:47, Dave at Sinewaves.net wrote:
 Is there any way of automatically adding a certain bit of code to every
 page on a web server (or within a given directory)?

php.ini -- auto_prepend_file, auto_append_file

--
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
An eye in a blue face
Saw an eye in a green face.
That eye is like this eye
Said the first eye,
But in low place,
Not in high place.
*/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Banner Ad Serving...

2002-07-23 Thread Cal Evans

Tell apache that .html files are to be served through php

*
* Cal Evans
* The Virtual CIO
* http://www.calevans.com
*
 

-Original Message-
From: Dave at Sinewaves.net [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 11:00 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Banner Ad Serving...


That works fine for files with .php extensions, but I need something to add
code to html pages as well...  Any ideas???

Dave



-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 8:55 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Banner Ad Serving...


On Wednesday 24 July 2002 11:47, Dave at Sinewaves.net wrote:
 Is there any way of automatically adding a certain bit of code to every
 page on a web server (or within a given directory)?

php.ini -- auto_prepend_file, auto_append_file

--
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
An eye in a blue face
Saw an eye in a green face.
That eye is like this eye
Said the first eye,
But in low place,
Not in high place.
*/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] Banner Ad Serving...

2002-07-23 Thread Dave at Sinewaves.net

I think you may have it on that one!  You get the gold star! :)

Thanks for the help -- I probably would have banged my head against my
keyboard for another week or so before I thought of that!

Dave

-Original Message-
From: Cal Evans [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 9:06 PM
To: Dave at Sinewaves.net; [EMAIL PROTECTED]
Subject: RE: [PHP] Banner Ad Serving...


Tell apache that .html files are to be served through php

*
* Cal Evans
* The Virtual CIO
* http://www.calevans.com
*


-Original Message-
From: Dave at Sinewaves.net [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 11:00 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Banner Ad Serving...


That works fine for files with .php extensions, but I need something to add
code to html pages as well...  Any ideas???

Dave



-Original Message-
From: Jason Wong [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 8:55 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Banner Ad Serving...


On Wednesday 24 July 2002 11:47, Dave at Sinewaves.net wrote:
 Is there any way of automatically adding a certain bit of code to every
 page on a web server (or within a given directory)?

php.ini -- auto_prepend_file, auto_append_file

--
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
An eye in a blue face
Saw an eye in a green face.
That eye is like this eye
Said the first eye,
But in low place,
Not in high place.
*/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Banner Ad Serving...

2002-07-23 Thread Jason Wong

On Wednesday 24 July 2002 12:07, Dave at Sinewaves.net wrote:
 I think you may have it on that one!  You get the gold star! :)

 Thanks for the help -- I probably would have banged my head against my
 keyboard for another week or so before I thought of that!

Or you can use something called mod_layout.

-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *

/*
I'm not even going to *__bother* comparing C to BASIC or FORTRAN.
-- L. Zolman, creator of BDS C
*/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Banner Ad Serving...

2002-07-23 Thread Justin French

on 24/07/02 2:00 PM, Dave at Sinewaves.net ([EMAIL PROTECTED]) wrote:

 That works fine for files with .php extensions, but I need something to add
 code to html pages as well...  Any ideas???

Well, this IS a php list :P

If you have control over the apache config, you can specify all .html files
to be parsed in the same way as .php -- although there will be some kind of
performance hit.

There is mod_ssi (server-side includes) which works on .shtml pages (or all
.html pages if you specify it in the apache config.

But in both cases, you want the bit of code (a banner I guess) to appear
after the BODY tag, and possible after some other code, like tables n stuff,
so auto-prepending will not work, and realistically, *total automation* of
this process will be impossible to achieve in standard HTML files, due to
the nature of WHERE you need to position the banner, and the fact that the
HTML before the banner will be different on a page-by-page basis.

I'd have a bunch of php files which all have a snippet of code in them for
the banner.

HTML
HEAD
TITLEsomething/TITLE
/HEAD
BODY
... some layout stuff ...
? include('inc/getRandomBanner.php'); ?
.. the page content here ...
/BODY
/HTML

getRandomBanner.php would be a small file which get a random (or specific)
banner from a database or directory, and returns the appropriate HTML code
(an anchor and an IMG tag) in the correct place.


SSI would have similar structure, but with different limitations.




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php