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

From: Date: Sun, 07 Jan 2001 12:39:14 +0000
Subject: Re: PHP4/Apache: .php files OK, <?php fails
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-1486@lists.php.net to get a copy of this message
The contents of all pages are determined by the web server - the browser just displays it as if it's what the web server tells it that it is. Your problem is 100% server-side since it's intermitent and you're always using .php as an extension. ----- Original Message ----- From: "Paul Rafferty" <paulr@halford-youngs.com.au> To: <php-install@lists.php.net> Sent: Sunday, January 07, 2001 11:28 PM Subject: Re: [PHP-INST] PHP4/Apache: .php files OK, <?php fails > 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. > > > > > -- > PHP Install Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-install-unsubscribe@lists.php.net > For additional commands, e-mail: php-install-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > >

« previous php.install (#1486) next »