title: How do I go about loading vars from an include() within a function()?
body: <p>I'm trying to get some variables from a .php file. I call a function which has an included file in it that has the vars I want but it won't return any. Within the function I can view the variables values, but not outside the function.</p>
  
  <pre><code>//MODULE INCLUDE
  function moduleInclude($mid) {
  $query = "SELECT file,type FROM sh_module WHERE mid = '{$mid}'";
  $exe = mysql_query($query);
  $row = mysql_fetch_array($exe);
  $folder = moduleFolder($row['type']);
  $output = include("../includes/modules/".$folder."/".$row['file']);
  
  return $output;
  }
  
  //Load the vars
  moduleInclude($mod_ship);
  $ship_meth = $MODULE_title_client;
  //THE ^^^^ MODULE_title_client never returns anything :(
  </code></pre>