Re: scripting
| From: | Sebastian Delmont | Date: | Thu, 30 Nov 2000 17:07:31 +0000 |
| Subject: | Re: scripting | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-28080@lists.php.net to get a copy of this message | ||
> Hello,
> is it possible to execute php-scripts in *.html documents through
inserting
> the below mentioned line in htaccess or some other file?
>
> I want to use inline-scripting (in Html-docs)
> I know it is not supported standard by my ISP.
AddType application/x-httpd-php .html
This will consider any file named *.html as a PHP document...
Depending on yout ISP settings, you can use that apache setting in .htaccess
or not.
>
> How do searchengines handle *.php* files by the way?
> Do they index these script-pages or not?
> Regards,
> Bart
As long as the PHP file returns a text/html content-type it will be
indexed... and by default, php files always return that content type, so as
long as you don't use any header( "Content-type: xxx/yyy" ); line, you're
safe.
Regards,
Sebastian