Ok, took me some time but somehow I've managed to make it work (told ya, i know pretty much nothing..).
<?php
$charinfo = fopen("http://newcapital.combats.com/inf.pl?login=Freakazoid&short=1", "r");
while (!feof($charinfo)) {
$buffer = fgets($charinfo, 4096);
echo $buffer;
}
$info = "$buffer";
$pieces = explode(" ", $info);
echo $pieces[0];
echo $pieces[1];
fclose($charinfo);
?>
So what this basically does is collecting everything from: http://newcapital.combats.com/inf.pl?login=Freakazoid&short=1 and holds it in $buffer (echo $buffer will be removed later).
I've also used the explode function to Split a string by string but that doesnt do what Im trying to get.
Taken from the link above
login=Freakazoid login_online= id=1114836769 align=0 zodiac=2 blocked= img=0 gamecity=New Capital city gamecity_url=http://newcapital.combats.com room_name= battle_id= level=0 vicrory=10 defeat=4 klan= bossklan=0 rank= name=Freakazoid! sex=0 dex=3 str=4 inst=3 power=5 intel=0 wis=0 spirit=0 birthplace=New Capital city date_registry=30.04.05 18:52 objects=roba1=Shirt\nHealth points: +3\nDurability: 0/10,=,=, HP=33/33
echo $pieces[0]; adds another HP=33/33 at the end
and echo $pieces[1]; does nothing at all.
Could you please explain me how would it be possible to take, lets say "Freakazoid" or, "New Capital city" from this long string?
Thanks in advance!