Re: Include File Errors with Comments

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Patrick Moloney wrote:


Does PHP preprocess the file but treat the comments as text because I never said it was HTML?

I've not had it do that.

Would PHP comments have to be inside PHP tags?

Yes. If you use a php comment it has to be inside a php tag.

One issue I have seen though is xml/xhtml files.
php sometimes sees the <?xml and assumes it is a php start tag.

I assume the appropriate thing to do is turn off short tags in your php.ini file - but unfortunately a lot of 3rd party classes and apps make heavy use of them.

Am I correct in having just a fragment of HTML in the included file without the entire HTML organization? I'd like to have comments in the file.

Use html comments and it should be fine - or put php tags around the comments.




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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux