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