Forum Moderators: coopster

Message Too Old, No Replies

redirection problem

header already sent

         

phparion

11:13 am on May 6, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



hi

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.

eelixduppy

11:18 am on May 6, 2006 (gmt 0)



Hello...

The only way i see it is that you should use javascript:


<SCRIPT LANGUAGE="JavaScript">
window.location="list.xml";
</script>

Hope this helps

eelix