title: Use php variables in multiple css files
body: <p>I know I can ask my php file to act like a css one, I already did. My problem is how to use variables in another css-php files ? My css.php file with global variables is loaded before others in html list, but it doesn't seem it includes it.</p>
  
  <p>My html :</p>
  
  <pre><code>&lt;link rel="stylesheet" type="text/css" href="assets/css/variables.css.php"&gt;
  &lt;link rel="stylesheet" type="text/css" href="assets/css/main.css.php"&gt;
  </code></pre>
  
  <p>My variables.css.php file :</p>
  
  <pre><code> &lt;?php
     header("Content-type: text/css");
     $color = "#004D7F";
   ?&gt;
  </code></pre>
  
  <p>My main.css.php file :</p>
  
  <pre><code>&lt;?php header("Content-type: text/css");  ?&gt;
  body {
      background: &lt;?=$color;?&gt;;
  }
  </code></pre>
  
  <p>But it doesn't work, it doesn't recognize the variable $color. So I tried to add at main.css.php :</p>
  
  <pre><code>require("/assets/css/variables.css.php");
  </code></pre>
  
  <p>But it threw an error. Does someone know the answer ? How to get access php variables in another php file acting as css ?</p>
  
  <p>Thank you in advance ! </p>
  
  <p>-- Carlos</p>