RE: [PHP] xml declaration

From: Date: Fri, 13 Sep 2002 14:04:02 +0000
Subject: RE: [PHP] xml declaration
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-116278@lists.php.net to get a copy of this message
I don't have a problem with it validating. I was just asking basically if the xml declaration had to be included within PHP tags because of the <?xml because my PHP complains about the XML declaration. I started thinking perhaps I have something configured wrong with my PHP set up or something... > -----Original Message----- > From: Jay Blanchard [mailto:jay.blanchard@niicommunications.com] > Sent: Friday, September 13, 2002 9:37 AM > To: 'Brian V Bonini'; 'PHP Lists' > Subject: RE: [PHP] xml declaration > > > [snip] > When I do that PHP complains about the <?xml .. > > > <?php > > echo '<?xml version="1.0" encoding="UTF-8"?>' . > > "\n"; > > ?> > > > > What's everyone else do? I'm not missing something here am I?? :) > [/snip] > > Try > > <?php > print("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"); > ?> > > I just copied this from a page that I have that validates properly > HTH! > > Jay > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#116278) next »