Hey all,
First, any apology. I had put in a filter to place
all my list messages into a folder, and did not
see Richard Lynch's reply to my earlier post about
getting the iTunes player to open up inside PHP.
I can see from what he said that my problem below
is probably caused by the browser thinking it is
getting HTML or something sneaking in front of the
XML here?
I'm not sure how to go about solving that, so if I
am correct any suggestions building upon Richard's
post would help.
I think I'm trying to solve the problem Richard
alluded to with the header call that sets up XML,
but perhaps that is coming to late?
Skip
Skip Evans wrote:
Hey all,
I have getting the following error page in the browser when trying to
redirect to an iTunes XML file to open the player.
===================================================
Cannot view XML input using style sheet.
Please correct the error and then click the
Refresh<javascript:location.reload()>button, or try again later.
------------------------------
XML document must have a top level element. Error processing resource '
http://www.fiql.com/~podlist/get_podlist.php?id=27'.
===================================================
And here is the code:
header('Content-Type: text/xml; charset=UTF-8');
require_once "db_connect.php";
require_once "db_manage.php";
// SEE skip evans -- 1/29/07 -- check if superfeed XML file is due to be
rebuilt.
// if so, rebuild the file and pass the new file on to iTumes.
Check_XML_file($id);
@readfile("itpc://www.fiql.com/~podlist/superfeeds/superfeed$id.xml");
===================================================
No style sheet gets read in, and there is no echo or print statements
outputting anything to the browser until the readfile() call.
Any suggestions would be greatly appreciated. By the way, I used the
post at the bottom of this forum for the hint on using readfile().
http://www.pmachine.com/forums/viewthread/37591/
--
Skip Evans
Big Sky Penguin, LLC
61 W Broadway
Butte, Montana 59701
406-782-2240
http://bigskypenguin.com
=-=-=-=-=-=-=-=-=-=
Check out PHPenguin, a lightweight and
versatile PHP/MySQL development framework.
http://phpenguin.bigskypenguin.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php