Posted by lawrence k on 05/31/06 19:26
NC wrote:
> lawrence k wrote:
> >
> > How can I find out where my script is outputting to the screen
> > for the first time?
>
> It may not be your script; it could be one of the files you are
> including...
>
> > My error logs are full of stuff like this:
> ...
> > but the lines they are pointing to are
> >
> > session_start();
> > session_register();
>
> You probably have a blank space or an empty line somewhere between the
> beginning of a file and the first "<?"... Find it and delete it.
I know that. My question was how do I find out where the output
starts? Is there an IDE that would check this for me?
My system has 1800 PHP files. I can't go through them one at a time
looking for white space.
> Alternatively, use output buffering; start buffering at the beginning
> of the script and dump the buffer after you're done working with
> sessions...
That would disguise the problem, but a year frow now it would probably
come back and bite me. I need to fix the true problem, not hide it.
Navigation:
[Reply to this message]
|