Xampp win32 1.7.4 error
Posted: 12. April 2011 16:01
Hello,
I have installed Xampp on Windows 7 32 bit but I am getting this error message when I type http://localhost/xampp onto the browser
Warning: Variable passed to each() is not an array or object in C:\xampp\htdocs\xampp\head.php on line 27
Below is the code inside the head.php file [pls take note: line 27 is the while loop]
I have already searched for this problem throughtout this board but i cannot find anywhere it has been addressed. Thanks,
I have installed Xampp on Windows 7 32 bit but I am getting this error message when I type http://localhost/xampp onto the browser
Warning: Variable passed to each() is not an array or object in C:\xampp\htdocs\xampp\head.php on line 27
Below is the code inside the head.php file [pls take note: line 27 is the while loop]
I have already searched for this problem throughtout this board but i cannot find anywhere it has been addressed. Thanks,
- Code: Select all
<?php
include("lang/languages.php");
$l=file_get_contents("lang.tmp");
$i=0;
while (list($key, $value) = each($languages))
{
if($i++)echo ' / ';
$s="";
if($l==$key)$s='style="font-weight: bold;"';
echo '<a '.$s.' target="_parent" href="/xampp/lang.php?'.$key.'">'.$value.'</a>';
}
?>