title: Have an include() for specific content with PHP
body: <p>I have several files with a header and a footer, let's say <code>file1.php</code>, <code>file2.php</code> and <code>file3.php</code></p>
  
  <p>These files <code>include()</code> the files <code>header.php</code> and <code>footer.php.</code></p>
  
  <p>Now the concern is this... Each page has to load a general header content with certain css styles, but also a -specific- style for such page. This also happens on the footer: it loads a bunch of scripts for all pages, but a specific script for a specific page.</p>
  
  <p>How can I achieve this?
  I certainly don't want to put the specific script on the specific page because it might not only be attached to one, but several ones, the js script or the css style can be attached to five or ten pages...</p>
  
  <p>I was thinking a <code>switch()</code> for each case in the header or footer page, then any conditional (such as <code>$_SERVER['PHP_SELF']</code>) in the other pages, but how can I do the include thing? is it include() what I'm looking for?</p>
  
  <p>Thank you.</p>