Richard Lynch wrote:

On Sun, May 1, 2005 12:54 pm, Evert | Rooftop Solutions said:


I'm working on a template engine, and I want my template engine to be
automaticly started when a .stl file is called from the browser.
I know this can be done with mod_rewrite, but I really need a
platform-independant solution. Has anybody some ideas on how to make it
work everywhere (preferable also on hosts where you don't have access to
configuration/shared hosting).


At one end of the scale, you could write a Module for Apache, *just* like
PHP is.

At the other end, you could give documentation to users about using
httpd.conf and/or .htaccess and Apache's ForceType directive to fire up
PHP.

Somewhere in the middle, I guess you could create an extension of PHP,
just like php_mysql.[so|dll] and that *might* maybe give you the ability
to hack enough things, including the installer/configure scripts that
would do what you want... Probably not though, now that I think about it.


I think the most realistic approach, honestly, is to just educate
users/hosts how to easily send all your .stl scripts through PHP. If your
.stl becomes even moderately popular, they'll do that, certainly *long*
before they'll install your STL module to Apache.


[snip]

I've should have mentioned:

The template format is primairily going to be used by inside developers and partners. They want to be able to use it for every client they encounter, but are sometimes restricted by the clients (shared-)host.

Thank you for your big explaination, I think I know enough to dive into the subject.

regards,
Evert

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



Reply via email to