Thanks BUU,
I think you are pointing to right direction. I had a problem before with the headers so i got this line from somewhere since someone replied saying that my header is not getting set. I also had one line something like
But i think it did not work. Can you tell me if there is something wrong with the script ? I am getting internal server error.
Thanks.