On Sun, 2009-07-19 at 14:07 -0400, Paul M Foster wrote:
> On Sun, Jul 19, 2009 at 09:30:33AM +0530, kranthi wrote:
> > 
> > > You do realize that PHP does not parse HTML files, right? The web server
> > > does that. In fact, the web server also parses PHP files, using a
> > > different library.
> >
> > Kindly elaborate If you are saying that PHP cant parse files with
> > extension .html
> > http://us2.php.net/manual/en/security.hiding.php.
> That's exactly what I'm saying. Apache or IIS (or whatever) discern the
> contents of a file and determine how to parse it. As far as I know,
> Apache, even with a PHP file, parses the HTML in the file and hands PHP
> off to a PHP module to decode. The PHP engine itself does not parse the
> HTML which is interspersed in and amongst your PHP code. The web server
> does that. Unless some php internals person says otherwise, that's the
> story. At best, the PHP engine would simply echo non-PHP text to the
> browser, which is not parsing it.
> Paul
> -- 
> Paul M. Foster
I thought that files that were deemed to be PHP files (indicated to the
web server by the extension and not the content) were sent to the PHP
parser, and *that* decided what bits went to the web server as regular


PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to