title: PHP header in CSS file
body: <p>I've looked on here and managed to get my <code>css</code> file to work with <code>php</code>, however when I validate it, I get errors, specifically: </p>
  
  <p>Unknown error org.w3c.www.http.HttpInvalidValueException: Invalid content type.</p>
  
  <p>The file in question is medium.php </p>
  
  <p>The <code>html</code> to link to the file reads:</p>
  
  <pre><code>&lt;meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"&gt;
      &lt;link rel="stylesheet" type="text/css" href="medium.php" media="screen and (max-width: 1024px)" /&gt;
  </code></pre>
  
  <p>The <code>CSS</code>/<code>PHP</code> file starts like this:</p>
  
  <pre><code>  &lt;?php header("Content-type: text/css; charset: UTF-8");
  
  include 'login.php';
  
  $link = mysql_connect($hostname,$username,$password);
  mysql_select_db($database) or die("Unable to select database");
  </code></pre>
  
  <p>Anyone know how to correct this so it formats correctly and does not generate an error please?</p>