Re: .html or.php extension

From: Date: Sun, 08 Feb 2004 17:24:07 +0000
Subject: Re: .html or.php extension
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-177151@lists.php.net to get a copy of this message
If you start with one index.php then use that to include additional files, it should accept any file, even with no extension. At least it works that way for me. E . H . Terwiel wrote:
My PHP system demands that files to be interpreted by PHP MUST have the .php extension. If I have an .html file with <?php ....?> in it, it won't interpret the PHP code. Unlike JavaScript, f.i. Is there a way to make the server do the PHP code anyway, in an HTML file ? Or must the action yes-php/no-php be taken before looking into the file ? The other way around is ok: put HTML code in a .php file... frgr Erik


« previous php.general (#177151) next »