XML declaration within PHP Nov21 '04
Feedback
# (2 of 5): Matthom
1 week, 4 days after the fact. (Thu 02 Dec 2004, 10:00 PM CST)
What IS the htaccess script that I need?
And, everyone, please ignore the 'echo' example from above... I totally messed that one up. Like Blitz said, I don't need the newline (\n), and I don't even think I need to escape those double quotes... but I could be wrong on that one.
# (3 of 5): Justin » zombiecrossing.info
7 months, 1 week after the fact. (Thu 30 Jun 2005, 2:02 PM CST)
http://forums.devarticles.com/archive/t-5039/XHTMLPHP-error
This should solve your .htaccess php/xml problem. I had the same issue.
# (4 of 5): Sampablokuper » sampablokuper.com/blog
4 years, 1 month after the fact. (Sun 04 Jan 2009, 12:47 PM CST)
echo "<?xml version="1.0" encoding="utf-8"?>
";
does the trick for me.
# (5 of 5): Sampablokuper » sampablokuper.com/blog
4 years, 1 month after the fact. (Sun 04 Jan 2009, 12:48 PM CST)
OK, that code should all have been on one line, but you get the idea :)
RSS feed for comments on this post
Leave feedback
matthom
is published and produced by Matt Thommes - an independent publishing enthusiast, mobile blogger, content creator, informative writer, web developer from Chicago.
Never one to conform, Matt intends to promote the effect the web has on our lives, in an effort to intensify, instruct, and clarify all that is happening around us.
Several methods of declaring an XML document within a PHP realm.
You are at the feedback permalink page for: XML declaration within PHP
# (1 of 5): Blizt » blizt.nl
1 week, 2 days after the fact. (Wed 01 Dec 2004, 8:15 AM CST)
When you use \n in a single-quoted string (') it will not be parsed as a newline, remember that.
And btw: look in to short-tags ;) (for php.ini/htaccess)