Hi Dave,
No hook, it's an actual php page I made for vbulletin that has a template associated.
I will create an array and post back,
Thank you Dave.
--------------- Added [DATE]1486753631[/DATE] at [TIME]1486753631[/TIME] ---------------
Hi Dave,
I put road into a foreach array, but its still not giving me any luck.
PHP Code:
$handle = fopen("./streetview/n7.txt", "r");
if ($handle) {
while (($line = fgets($handle)) !== false) {
$t = explode(",", $line);
if(isset($t[0]) && strpos($t[0], "London") === false){
$road = trim($t[0]);
foreach($road as $svp){
$sv = $svp;
}
// Use $road.
}
}
fclose($handle);
}
}
let me know what you think, and thank you
Mick
--------------- Added [DATE]1486828541[/DATE] at [TIME]1486828541[/TIME] ---------------
I managed to get it working, i went around the houses a little to get it into a comma seperated list - then used the unique array to clean duplicates. I AM SURE lol it could of been done much easier lol
I always forget you need to .= to itterate the arrays
but it works, if anyone wants it
PHP Code:
$handle = fopen("./streetview/n7.txt", "r");
while($row = fgets($handle)) {
list($road) = explode( ",", $row );
if(isset($road) && strpos($road, "London") === false){
$svp .= $road . ', ';
$sv = implode(',', array_unique(explode(',', $svp)));
}
}
fclose($handle);
}