If you can edit the PHP script: send a line break after that line.

Now I'm wondering, do you get ALL output when the user exists? Or is the last line missing too?
If that's the case, it's because /sockread %bot only reads a line if it ends in $crlf. If there's no line break, nothing is read... Use /sockread -f %bot to force the read, even if it doesn't end in a line break. This might give partial lines sometimes (a line split over 2 lines), but everything should be displayed...