Check this out:

http://www.php.net/manual/en/function.virtual.php

That just very well could be what you need. Otherwise, you may have to
rewrite your stuff. Keep in mind Apache 1.3.x can only process one file
via one 'addtype' thing. Apache2 has support for more that one 'filter',
but I have not tried it yet. Having more than one filter on one file could
slow your website down, so it would be best done with discression (sp?).

You may be able to do what you want with an include() call, as well (look
at include, include_once, require and require_once at php.net) depending
on how your code is written.

-Dash

Ever since prehistoric times, wise men have tried to understand what,
exactly, make people laugh.  That's why they were called "wise men."
All the other prehistoric people were out puncturing each other with
spears, and the wise men were back in the cave saying: "How about:
Would you please take my wife?  No.  How about: Here is my wife, please
take her right now.  No How about:  Would you like to take something?
My wife is available.  No.  How about ..."
                -- Dave Barry, "Why Humor is Funny"

On Thu, 30 Jan 2003, Leo G. Divingracia III wrote:

> have a slight problem.
>
> need to include some template files that are javascript.
>
> so i have setup my apache 1.3.x server to parse .SHTML files.
>
> now, i need to add php to this.
>
> so fine. all i thought i could do was add this to my apache conf file:
>
> AddType application/x-httpd-php .php4 .php .htm .php3 .inc .html .shtml
>
> but after that change, when i call that .shtml page with a bit of php
> code, it brings up the SAVE AS dialog box.
>
> here's the part of apache's conf file to parse SSI files:
>
>      # To use server-parsed HTML files
>      #
>      AddType text/html .shtml
>      AddHandler server-parsed .shtml
>
> so is there way to get around this?  or am i stuck?
>
> thanks...
>
>
> --
> Leo G. Divinagracia III
> [EMAIL PROTECTED]
>
> zzzzz
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


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

Reply via email to