i want to use some echo statements before using header function
so what to do
thnx in advance
header function
Moderator: General Moderators
- JAB Creations
- DevNet Resident
- Posts: 2341
- Joined: Thu Jan 13, 2005 6:44 pm
- Location: Sarasota Florida
- Contact:
Re: header function
Then just do it; it can be useful for debugging.
Keep in mind whenever there is any client output before PHP sends out headers then the headers will not be sent.
Keep in mind whenever there is any client output before PHP sends out headers then the headers will not be sent.
Re: header function
you can use output buffering, but better just do not echo anything before the headers
Or if you need it for debugging, you can log to a file.
Or if you need it for debugging, you can log to a file.