hi, I made a style sheet that the content is generated via SQL info. It woks fine on test servers in the office, but on a live site, it always says the headers are already send.
Warning: Cannot modify header information - headers already sent by (output started at /home/df420/public_html/somedir/template/style.php:1) in /home/df420/public_html/somedir/template/style.php on line 1
If the file is saved as UTF-8, make sure it is saved wtihout a BOM (byte order mark), which would be output before your opening <?php tag (or just save it as plain ASCII text if you don't really need the extended UTF-8 character set).
If that's not it, is it possible your web host has an auto_prepend_file configured in your php.ini settings (or apache config/.htaccess) which might be generating output?
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Possibly something to do with the FTP client or file upload page you used to deploy it to the web host?
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Bookmarks