Reply to Re: serving xhtml with php

Your name:

Reply:


Posted by boclair on 07/18/06 23:49

abracad_1999@yahoo.com wrote:
> Is it possible to serve valid xhtml with php?
>
> xhtml requires the 1st line:
> <?xml version="1.0" encoding="iso-8859-1"?>
> But php interprets the opening <? as a php statement.
>
> If I try to echo this in PHP:
> <?php
> echo '<?xml version="1.0" encoding="iso-8859-1"?>';
> ?>
> The closing ?> of the xhtml bit is interpreted as closing the php.
> Thus:
> '; ?>
> is displayed in the browser.
>
> Any way around this?
>
Perhaps
<?php
.......
?>
<?xml version="1.0" encoding="iso-8859-1"?>

Louise

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация