Re: including a php snippet into .html file!!! HELP!!!

From: Date: Wed, 06 Sep 2000 16:45:00 +0000
Subject: Re: including a php snippet into .html file!!! HELP!!!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-15547@lists.php.net to get a copy of this message
In article <20000906132944.10102.qmail@web3706.mail.yahoo.com>, thomasedisonjr@yahoo.com ("Thomas Edison Jr.") wrote: > and i have to include it in one my HTML files. Now i > don't want to make this HTML file to PHP3 file due to > some reasons, can i inculde this snippet by making a > ".php3" file out of it and by some way then including > this ".php3" file into my ".HTML" file??? > Is it possible? 1. If your server is parsing ".html" files as server-side includes, then, yes, you can <!--#include virtual="coolthing.php3" --> (syntax for Apache, of course). 2. If your server is not parsting .html files as server-side includes, but does have that capability, you can probably tell the server that, *inside this directory only*, parse .html files as server-side includes. In Apache, I think this would be: AddType application/x-httpd-php3 .html. You probably don't want to do this if there are many files in the directory as your .html file, or if there are directories beneath the directory that contains your .html file. 3. If you explain why you don't want the filename to end in .phxxx, other solutions might become apparent. Jerry

« previous php.general (#15547) next »