Folge dem Video um zu sehen, wie unsere Website als Web-App auf dem Startbildschirm installiert werden kann.
Anmerkung: Diese Funktion ist in einigen Browsern möglicherweise nicht verfügbar.
<?php
$file = file_get_contents('http://gamercard.xbox.com/de-DE/ATZEONE87.card');
$matches = null;
preg_match_all("/<div id=\"(.*?)\">(.*?)<\/div>/iU", $file, $matches);
for ($i = 0; $i < count($matches[1]); $i ++) {
$_div[$matches[1][$i]] = $matches[2][$i];
}
print_r($_div);
preg_match_all("/<span class=\"(.*?)\">(.*?)<\/span>/iU", $file, $matches);
for ($i = 0; $i < count($matches[1]); $i ++) {
$_span[$matches[1][$i]] = $matches[2][$i];
}
print_r($_span);
?>
<?php
$string = file_get_contents("gamercard.xbox.com/de-DE/ATZEONE87.card");
// or PHP CURL
$regex = "/<span class=\"(.*?)\">(.*?)<\/span>/i";
preg_match_all ($regex, $string, $output);
var_dump($output);
?>
<?php
$file = file_get_contents('http://gamercard.xbox.com/de-DE/ATZEONE87.card');
$matches = null;
preg_match_all("/<div id=\"(.*?)\">(.*?)<\/div>/iU", $file, $matches);
for ($i = 0; $i < count($matches[1]); $i ++) {
$_div[][$matches[1][$i]] = $matches[2][$i];
}
print_r($_div);
preg_match_all("/<span class=\"(.*?)\">(.*?)<\/span>/iU", $file, $matches);
for ($i = 0; $i < count($matches[1]); $i ++) {
$_span[][$matches[1][$i]] = $matches[2][$i];
}
print_r($_span);
?>
for ($i = 0; $i < count($matches[1]); $i ++) {
$_span[][$matches[1][$i]] = $matches[2][$i];
}
for ($i = 0; $i < count(matches[1]); $i ++) {
$_game=intval($i/7); # eben nicht MOD :)
$_span[$_game][$matches[1][$i]] = $matches[2][$i];
}
echo"<pre>";
var_dump($_span);
echo"</pre>";