note 51462 added to language.basic-syntax

From: Date: Thu, 31 Mar 2005 11:38:12 +0000
Subject: note 51462 added to language.basic-syntax
Groups: php.notes 
Request: Send a blank email to php-notes+get-87248@lists.php.net to get a copy of this message
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. ---- Manual Page -- http://www.php.net/manual/en/language.basic-syntax.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+51462 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51462&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51462&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51462&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51462&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51462&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+51462&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#87248) next »