Well, you can tell apache to filter html through php by adding the .html
extension to the directive suchas:
AddType application/x-httpd-php .php .html
If you serve a lot of .html, this will probably slow your server down
because all .html files will be filtered through php
You can set index.php as your directory index, so directory urls point to a
index.php page instead of index.html
<IfModule mod_dir.c>
DirectoryIndex index.php
</IfModule>
Now http://yourserver.com/ automatically points to
http://yourserver.com/index.php
I believe both options may be set through .htaccess files, but I have not
studied that method of configuration.
""[EMAIL PROTECTED]"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> On a standard Apache you cannot just put php scripts in html files, since
> the apache won't pass them on to the php-interpreter. However it is
probably
> not true, that the files come without the php-code. You just cannot see it
> in the Browser since it is hidden inside <?php...?> tags. But if you look
at
> the sourcecode of the page your borwser is displaying you're likely to see
> your complete php-source in there as well.
> So just rename your files to an extension that is interpreted as php and
> everything should wqork fine. (ususally .php or .php4)
> I know that there is a problem if you want to have a php page as your
> default page, since most webhosters will accept only index.htm(l) for
that.
> Don't know a clean way how to get round this problem though (without
having
> to use redirects or similar things in the index.html)
>
> > -----Original Message-----
> > From: Jordy [mailto:[EMAIL PROTECTED]]
> > Sent: Dienstag, 8. Mai 2001 14:57
> > To: [EMAIL PROTECTED]
> > Subject: [PHP-WIN] PHP and HTML
> >
> >
> > Hi there,
> > I have Php 4.0.5 and Apache Web Server,
> > It all works fine when I open php files, but
> > when I open html file with php scripts in it, it
> > doesn't work I just simply see the normal html but without any
> > scripts.. as
> > it doesn't use PHP in HTML .. could
> > someone please help!!!
> >
> > Thx
> > mail it to [EMAIL PROTECTED]
> >
> > Jordy
> >
> >
> >
> > --
> > PHP Windows 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]
> >
>
>
> --
> PHP Windows 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]
>
--
PHP Windows 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]