Public Information and Not for Profit Resources

' . $name . '

'; } } function load_resources($file) { $fp = @fopen($file, "r"); if (!$fp) { return "Cannot find resources list file; no events to list."; } $src_file = fread($fp, filesize($file)); fclose ($fp); $list = preg_split ('/\n\r/', $src_file); $resources = array(); foreach ( $list as $ref ) { $details = preg_split ('/[\r\n]+/', $ref); $resources[$details[1]] = array($details[1], $details[2], explode('/', $details[3])); } return $resources; } ?>