"Mike" <[EMAIL PROTECTED]> wrote:
> Im trying to parse a file twice ,once to extract an include file(NOT using
> the include() function) and again to parse the php code.Customer support
for
> my host says I can add the following line to an .htaccess file:
> AddType text/x-server-parsed-html .phtml
>
>  but that only parses the include file. I tried to add both:
> AddType text/x-server-parsed-html .phtml
> AddType application/x-httpd-php .phtml
>
> but that doesnt seem to work.Is this possable??

That won't work because PHP is parsing the included file, not Apache.  PHP
doesn't care what the extension on the file being included is.  One solution
is to go into the include file and put the entire file within a variable
with the RHS of the variable enclosed in single quotes so the RHS doesn't
get translated into values when first called.  Then in your main PHP file
that calls it use eval() to parse the variable before using it.

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to