XHTML and PHP

From: Date: Sat, 29 Sep 2001 18:02:47 +0000
Subject: XHTML and PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-69305@lists.php.net to get a copy of this message
Andrew, This will work, no doubt about it. But I think I forgot to mention that I am doing a project for someone who has a hosting service that has the short tags property "on" in their php.ini file. They have to have it on for those who don't like writing their php code in the form of <?php ... ?>. I checked it with phpinfo() and confirmed it to be as such. Is there any other way around this without going through the php.ini file? Navid -----Original Message----- From: Andrew Braund [mailto:abraund@dingoblue.net.au] Sent: Saturday, September 29, 2001 2:20 AM To: php-general@lists.php.net Subject: RE: [PHP] XHTML and PHP In your php.ini you should find; ; Allow the <? tag. Otherwise, only <?php and <script> tags are recognized. short_open_tag = On Set it to Off and see how you go. HTH Andrew Braund > -----Original Message----- > From: Navid Yar [mailto:NavidYar2@home.com] > Sent: Saturday, 29 September 2001 17:05 > To: php-general@lists.php.net > Subject: [PHP] XHTML and PHP > > > Hello intelligent folks... > > I have a problem with XHTML and PHP > > The first line of an XHTML document must include an XML processing > instruction, as such: > <?xml version="1.0" encoding="UTF-8"?> > > But PHP will parse it as PHP code because of the question marks. How do I > get around this problem? I don't want PHP to read that element as PHP, I > want it to leave it alone the way it is. I tried echoing the tag and -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#69305) next »