I am using the following code to share my sessions between PHP and Node.JS.
What the problem is, is that as I have to include it at the beginning of every script, I get a weird problem:
Basically somewhere along that code there is something that is echoing a new line, breaking some AJAX functions that I use (sharing small text bits between client and server).
I am having a hard time finding this ugly line; can you find it?
It is important to note that the line must be exactly in this file and not in
require("$appDirectory/vars/lib/Predis/Autoloader.php");
as I tried removing the predis client, too.
Thanks in advance.
Screenshot: imgur.com/RSpyA : line 1 is the problem:

Perhaps a new line after
?>somewhere