Raskolnikov
2007-12-21 18:52:00
Is there a function in PHP that parses the info in something like SRL Stats.
I know how to get the data, but, how do I parse the data? Can someone give me an example?
n3ss3s
2007-12-22 03:05:10
You have to make it yourself, but I'll give you one:
[pHp]
function get_string_between($string, $start, $end){
$string = " ".$string;
$ini = strpos($string,$start);
if ($ini == 0) return "";
$ini += strlen($start);
$len = strpos($string,$end,$ini) - $ini;
return substr($string,$ini,$len);
}
[/pHp]
Raskolnikov
2007-12-23 18:09:47
I also need help with actually getting the data? I tried using the one Markus suggested on your help thread but it didn't work. Help!
n3ss3s
2007-12-25 11:43:56
Lol - drama:
"You're nobody to tell me what to do!"
/run and hide
:p
cut em2 it, it does work fine for my php code that creates my sig?