[Andy Yu <[EMAIL PROTECTED]>] > Hi. > I don't think that php support xhtml well now, throught > php-4.0.6 support <script language="php"> tag. > > I modify some php source, mainly about > sapi_apache & zend language scanner. > So that the xhtml file which comprises php code will > be well xml formed. > > 1.Add a mime/type application/x-httpd-php-xhtml to mark xhtml > mode. > 2.disable short-tags and asp-tags in xhtml mode. > 3.add <php> ... </php> instead <? ... ?> > and <php-v eval="...."/> instead <?= .... ?> > 4.ignore '<![CDATA[' and ']]>' in script block.
Since XHTML is XML, <?php ... ?> is the proper way of embedding PHP in XHTML files. IMHO we have more than enough start/end tags already. - Stig -- Stig Sæther Bakken <[EMAIL PROTECTED]> Fast Search & Transfer ASA, Trondheim, Norway -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]