Re: Extension problem

From: Date: Mon, 05 Apr 2004 09:57:29 +0000
Subject: Re: Extension problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-182343@lists.php.net to get a copy of this message
It's apache that runs the php script & it must some how know that this is a script file.. and the way you tell the apache to run the script is by the extention (.php) since .html is not an serverside script, apache dont nead to run that before sending it. but you can declare that in apache.conf (if you want html files to use php code) :) "Enrico Comini" <enrico@algobit.com> wrote in message news:PPEOLEBLEGFKDAOCDMLHIEKOFJAB.enrico@algobit.com... > I use php without problem, but my file is processed by php only if the > extension is .php , why ? > If I have for example a index.html with "<?php" at the beginning , this file > is not parsed by php and I have to rename in index.php > Thanks, Enrico > >

« previous php.general (#182343) next »