Original Post
Here''s the relevant code:
function igm_process($section){
$sql = "SELECT * FROM ".getsetting("dbprefix","logd_")."igms WHERE section=\"$section\" AND enabled=1 ORDER BY igmid";
$result = db_query($sql)or die(db_error(LINK));
// Grab the filenames and menunames
while($row = mysql_fetch_array($result)){
$file = $row[''dir'']."/".$row[''class''];
if(!strstr($file,".php")) $file = $file.".php";
include($file) or die("Notify sysop: Unable to include ".$temp);
}
db_free_result($result);
}
If I echo the $file variable, it prints out fine. I''ve even explicitly set $file to a string type, but I continually receive this error for every file I try to include:
Warning: igm_process(1): failed to open stream: No such file or directory in W:\www\logddev\igm_api.php on line 85
Warning: igm_process(): Failed opening ''1'' for inclusion (include_path=''.;/usr/local/PHP/includes;/usr/local/PHP/pear;./;./www/logddev'') in W:\www\logddev\igm_api.php on line 85