I moved servers just recently and since some of my php scripts have not been functioning as they should. I'm totally stumped as to what the problem could be as they worked perfectly before.
I'm just a tad unsure wheather it's a php, mysql or even an apache problem - although I'm pretty sure its php given the errors.
The errors arn't errors, but the arrays dont output results, but rather "Array, Array, Array, Array...." (ie: it actually says Array!)
Here's the code in question, which has be stumped.
Any ideas would be greatly appreciated.
function getAvailableLangs()
{
if($handle = opendir(LANG_PATH))
{
$files = array();
while (false !== ($file = readdir($handle)))
// while($file = readdir($handle))
{
if(is_file(LANG_PATH.'/'.$file))
{
$file = str_replace('.php', '', $file);
$files[] = $file;
}
}
closedir($handle);
return $files;
}
else
return array();
}