Chances are that you have what’s known as a BOM (Byte Order Mark) in the file. Depending on what editor you’re using, you’ll need to turn off adding the BOM…
More Related Contents:
- Cannot modify header information [duplicate]
- Returning JSON from a PHP Script
- PHP generate file for download then redirect
- Why I have to call ‘exit’ after redirection through header(‘Location..’) in PHP?
- PHP page redirect [duplicate]
- PHP error: Cannot modify header information – headers already sent [duplicate]
- correct PHP headers for pdf file download
- Prevent sent emails treated as junk mails using php mail function
- Warning: Cannot modify header information – headers already sent by ERROR [duplicate]
- Symfony2 – Force file download
- PHP, display image with Header()
- PHP header(Location: …): Force URL change in address bar
- php, file download
- PHP header() redirect with POST variables [duplicate]
- How to pass variables received in GET string through a php header redirect?
- PHP headers already sent [duplicate]
- How to send a status code in PHP, without maintaining an array of status names?
- PHP header location-redirect doesn’t work – why? [duplicate]
- What is the format for e-mail headers that display a name rather than the e-mail?
- Bad Request. Connecting to sites via curl on host and system
- Cannot send session cookie – headers already sent [duplicate]
- HTTP response code after redirect
- Make multiple files to force-download
- header location not working in my php code
- Which line break in php mail header, \r\n or \n?
- Undefined index with PHP sessions
- Authorization header missing in PHP POST request
- PHP get pdf file from base64 encoded data string
- Download of .zip file runs a corrupted file php
- How to cause a redirect to occur before php script finishes?