Hi,
I am new to PHP. I am working on a site where i have a set of common functions stored in a file and i am using include
() to include the file in everypage to process the user input.
On some of the pages I need to redirect the user to a different page and I am using Header('Location: <page name>').
But I am running into the "header already being sent" error. My guess is it is due to the include() call.
One option to get rid of this error is to copy the function code in the file itself instead of including the file that has the code but that is not a good practice.
Please tell me how can I use include() and not get the "header already sent" error.
Hope I have been able to explain the problem clearly.
Thanks in advance
pundiv