note 51462 deleted from language.basic-syntax by betz

From: Date: Sun, 03 Jul 2005 08:08:30 +0000
Subject: note 51462 deleted from language.basic-syntax by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-91337@lists.php.net to get a copy of this message
Note Submitter: jasperbg at gmail dot com ---- To mwild at iee dot NO_SP_AM dot org, there is *no need* to escape <script language="php"> blocks as CDATA in an XHTML document! These scripts are parsed at the server so no validator ever sees them, unless something is wrong with your server config! To all doing weird and wonderful things to output XML declarations -- I just turn off short_open_tag in my .htaccess (or apache.conf if you have your own server) and output it normally, e.g. <?xml version="1.0" encoding="UTF-8"?> <?php ...some code... ?> Works fine, because PHP won't try to interpret the <?xml because short_open_tag is off.

« previous php.notes (#91337) next »