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
And here is the first 50 lines of the file.
PHP Code:
<?php header('Content-type: text/css');
require_once(
'../includes/settings.php');
require_once(
'../includes/db.inc.php');
require_once(
'../includes/style.inc.php');
$s $style->getStyle();?>
/* Dynamic CSS Document */
html{
<?php
foreach($s['html'] as $a){
    echo 
$a['attribute'].':'.$a['value'].';'."\n";
}
?>
}
body {
    font-size: 10pt;
    margin: 0 0 0 0;
    font-family: Myriad Pro, Tahoma, Verdana, Arial, Helvetica, sans-serif;
}
h2{
<?php
foreach($s['h2'] as $a){
    echo 
$a['attribute'].':'.$a['value'].';'."\n";
}
?>
}
h3{
<?php
foreach($s['h3'] as $a){
    echo 
$a['attribute'].':'.$a['value'].';'."\n";
}
?>
}
th {
    text-align: left;
}

td {
    padding: 0px 0px 0px 0px;
}

div.main {
    width: 1000px;
    margin: 0px auto 0px auto;
}

td.top_left {
    background: url("../images/template/top_left.png");
    width: 244px;
    height: 157px;
}