Re: Parsing SHTML files
| From: | bill | Date: | Thu, 17 Aug 2000 00:14:59 +0000 |
| Subject: | Re: Parsing SHTML files | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-12128@lists.php.net to get a copy of this message | ||
OK, here's a workaround.
If you need to keep SHTML files -as is- and yet add PHP functionality, use
the SHTML include and include a php file.
<!--#include virtual ="myphpcode.php" -->
It's a kludge, but, it works until something better can be found.
bill
bill wrote:
> Hello fellow PHPers,
>
> Does anyone know why I can't have PHP parse SHTML files?
>
> I've configured my web server to parse HTM and HTML files, even
> JavaScript files using the .htaccess directive like so:
>
> AddType application/x-httpd-php3 html
> AddType application/x-httpd-php3 htm
> AddType application/x-httpd-php3 js
>
> But adding a similar line for SHTML files doesn't work, the browser
> prompts the user to download the file of type
> "application/x-httpd-php3".
>
> Any ideas?
>
> thanks,
>
> bill
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net