Forum Moderators: coopster
i have a script that reads the values from database and generate a XML file , now I want to display XML file so i am redirecting it
header("Location: list.xml");
but it is giving Header Already Sent error as i am already sending some output in the page before using header.
can anyone tell me please how can i redirect to this file with already sent headers? i have tried
ob_start()
header()
ob_end_clean
but it is not working.
The only way i see it is that you should use javascript:
<SCRIPT LANGUAGE="JavaScript">
window.location="list.xml";
</script>
Hope this helps
eelix