title: Can I autoload function files without classes in PHP?
body: <p>My site is pretty large and I do not use PHP Classes, I do not understand OO good enough yet to re-write my site to use them however I would really like to use the
  __autoload($class_name) feature that classes use.  I rely a lot on functions, I have different function files,<br>
  forums.inc.php<br>
  blogs.inc.php<br>
  user.inc.php<br>
  photos.inc.php<br>
  general.inc.php  </p>
  
  <p>All these files are just functions specific to a certain part of the site, except general.inc.php would have functions that need to be on ever page.  </p>
  
  <p>Now is there anyway I could use autoload or make something similar that would load these function files?  I once thought about doing it based on the URL, like if the URL had the word forums in it, I would load the forums function file but this would not always work as ever file related to forums does not have the word forum in there URL.  </p>
  
  <p>Am I pretty much out of options until I learn to code OO good enough to put all my functions into classes?</p>
  
  <pre><code>//example of the autoload 
  function __autoload($class_name){
      include('classes/' . $class_name . '.class.php');
  }
  $time = new time();
  $time-&gt;fn1();
  </code></pre>