Re: PHP4/Apache: .php files OK, <?php fails

From: Date: Sun, 07 Jan 2001 12:28:32 +0000
Subject: Re: PHP4/Apache: .php files OK, <?php fails
Groups: php.install 
Request: Send a blank email to php-install+get-1485@lists.php.net to get a copy of this message
Hi. Forgive me if I'm wrong but my understanding is that if a file is of the type php then it is passed to the php interpreter if its not then its left to the browser to make sense of whatever is given to it. So in your case the file with the php suffix is handled by PHP and the resultant code is sent back to the browser whereas the html page does not go anywhere near the PHP engine and is therefore left to the browser to try and interpret. Hope this helps. >If I have an HTML file with some of what I'll call "inline" PHP, using the ><?php ?> construct, the server & browser completely ignore it. I can view >the page source and see the PHP code; it is just getting ignored as if it >were an unknown HTML tag.

« previous php.install (#1485) next »