Im reading a file on php using this code
$file_array = parse_ini_file("/usr/local/etc/oscam.user");
echo "<pre>";
foreach ($file_array as $value) {
echo $value."<br />";
}
exit;
That will output
sovrum
pass2
1
0
0B00
0B00:000000
Thats correct but the problem is, its just returning the end of my file ( the last element ) my file looks like this
[account]
user = vrum
pwd = pass1
group = 1
au = 1
caid = 0B00
ident = 0B00:000000
[account]
user = sovrum
pwd = pass2
group = 1
au = 0
caid = 0B00
ident = 0B00:000000
As you can see theres more accounts to read.