Re: Running scripts in non-php file

From: Date: Thu, 01 Jan 1970 00:00:00 +0000
Subject: Re: Running scripts in non-php file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-142488@lists.php.net to get a copy of this message
That should be all you need. Make sure that something isn't re-assigning those extensions later on in your conf file. Perhaps you changed the wrong addtype? Liek a commented out one? -Rasmus On Fri, 4 Apr 2003, Tom Tsongas wrote: > Hi folks. > > This will probably sound like a stupid question, but I will ask it > anyway: how can I get the PHP interpreter to execute scripts in files > that don't have the .php extension? i.e. if I want to embed php code > into a .html or .xml file that gets run. > > I thought all I had to do was add the extension to the AddType > application in the apache configuration file so it looked like this: > > AddType application/x-httpd-php .php .html .xml > > I tried it but the code isn't being executed. (And yes, I did restart > apache) > Am I missing something? > > Tom > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#142488) next »