Running scripts in non-php file

From: Date: Fri, 04 Apr 2003 22:29:41 +0000
Subject: Running scripts in non-php file
Groups: php.general 
Request: Send a blank email to php-general+get-142446@lists.php.net to get a copy of this message
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

« previous php.general (#142446) next »