fgets instead of stream_get_line because it work properly.