When running script, I am getting several errors like this: Warning: Cannot modify header information - headers already sent by (output started at ...