Posted by NC on 09/30/17 11:48
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.
Alternatively, use output buffering; start buffering at the beginning
of the script and dump the buffer after you're done working with
sessions...
Cheers,
NC
Navigation:
[Reply to this message]
|