title: How do I set a fixed background image for a PHP file?
body: <p>I have an .html file with a login form and wish to recreate it and save it as a .php file. However, I'm encountering difficulties with setting the background image and other CSS related stuff. </p>
  
  <p>Below is my code for the .php which I'm sure it won't provide guidance to answering my question, but I don't know where to start. I've checked W3schools and many other sites.</p>
  
  <p>A great start to helping me out would on how I would include a .CSS file in .PHP file. Perhaps giving me the a quick source code example. Also, the code to set a fixed background 
  image would be amazing.</p>
  
  <pre><code>&lt;?php
  
  $url = 'C:\Users\George\Documents\HTML\bg.jpg';
  
  ?&gt;
  
  &lt;html lang="en"&gt;
  &lt;head&gt;
  
  &lt;title&gt;This is a test&lt;/title&gt;
  
  &lt;style type="text/css"&gt;
  body
  {
  background-image:url('&lt;?php echo $url ?&gt;');
  }
  &lt;/style&gt;
  
  &lt;/head&gt;
  
  &lt;body&gt;
  
  &lt;p&gt;This is a test.&lt;/p&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>