RE: [PHP-WIN] PHP and HTML

From: Date: Wed, 09 May 2001 14:48:45 +0000
Subject: RE: [PHP-WIN] PHP and HTML
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-7391@lists.php.net to get a copy of this message
yes of course you can do that. But what I actually meant was that on a shared server you don't usually have the chance to configure the httpd.conf But ok, I have to admit that I forgot that you can do most of these thing in a .htaccess file as well thx to all for your help > -----Original Message----- > From: hassan el forkani [mailto:gaouzief@pop.runbox.com] > Sent: Mittwoch, 9. Mai 2001 13:49 > To: mailinglists@web.de; Jordy; php-windows@lists.php.net > Subject: RE: [PHP-WIN] PHP and HTML > > > ?? > you can configure apache to parse files with .html extension too > > edit httpd.conf > and make sure you have the following: > > > Action application/x-httpd-php4 "/php4/php.exe" > AddType application/x-httpd-php4 .php .html > this way apache parses files with both extensions .php and .html > > > regards > > > 08/05/01 16:58:24, "mailinglists@web.de" <Mailinglists@web.de> wrote: > > >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:jordy5@mail.com] > >> Sent: Dienstag, 8. Mai 2001 14:57 > >> To: php-windows@lists.php.net > >> 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 jordy5@mail.com > >> > >> Jordy > >> > >> > >> > >> -- > >> PHP Windows Mailing List (http://www.php.net/) > >> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > >> For additional commands, e-mail: php-windows-help@lists.php.net > >> To contact the list administrators, e-mail: > php-list-admin@lists.php.net > >> > > > > > >-- > >PHP Windows Mailing List (http://www.php.net/) > >To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > >For additional commands, e-mail: php-windows-help@lists.php.net > >To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > > > > > > > > >

« previous php.windows (#7391) next »