He puesto ese codigo anteriormente y nada :(
mejor le muestro todo mi codigo:
Código PHP:
Ver original<div align="center">
<?php
header('Content-Type: text/html; charset=iso-8859-1');
//$data = file_get_contents("http://steamcommunity.com/market/listings/570/Sash%20of%20the%20Third%20Insight");
//$data = file_get_contents("http://steamcommunity.com/market/listings/570/Talon%20of%20the%20Scarlet%20Raven");
//$data = file_get_contents("http://steamcommunity.com/market/listings/570/Dragonclaw%20Hook?filter=MEATHOOK");
//$data = file_get_contents("http://steamcommunity.com/market/listings/570/Sash%20of%20the%20Ravager");
//$data = file_get_contents("http://steamcommunity.com/market/listings/570/Arms%20of%20the%20Cryogenic%20Embrace");
//$data = file_get_contents("http://steamcommunity.com/market/listings/570/Heroic%20Hood%20of%20the%20Scarlet%20Raven");
$data = file_get_contents("http://steamcommunity.com/market/listings/570/Inscribed%20Wraps%20of%20the%20Drunken%20Warlord");
if ( preg_match_all('/(?:th_fee\">)\s*(.+)\s*(?:<\/span>)/' , $data , $cap, PREG_PATTERN_ORDER
) ) {
$i=0;
while ($i < 7){
if($i>=0){
//echo "num:".strlen(trim($cap[1][$i]))."<-<br>";
//echo "res1:".trim($cap[0][$i])."<-<br>";
//echo "res2:".trim($cap[1][$i])."<-<br>";
$cap[0][$i]=trim($cap[0][$i]); $cap[1][$i]=trim($cap[1][$i]); // if(isset($cap[0][$i])){ echo " P".$i.": ".trim($cap[0][$i])." --- T:".strlen(trim($cap[1][$i]))." <br>";}else{ echo " P".$i.": S/P<br>"; }
if(isset($cap[1][$i])){ echo " P".$i.": ".trim($cap[1][$i])." --- T:".strlen(trim($cap[1][$i]))." <br>";}else{ echo " P".$i.": S/P<br>"; } }
$i++;
}
echo "<br>-------------------------------------------------------------------------------------------------<br>";
$b=0;
while ($b < 7){
if($b>=0){
echo "<br>";
$p1=$cap[1][$b];
for($i=0;$i<strlen($p1);$i++){ }
echo "<br>";
for($i=0;$i<strlen($p1);$i++){ }
}
$b++;
}
echo "<br>-------------------------------------------------------------------------------------------------<br>";
$i=0;
while ($i < 7){
if($i>=0){
echo $i;
//Verificando si es dolar
echo " Dolares: ".$dol[0][0]."<br>";
}else{
echo " Dolares: ".$dol[0][0]."<br>";
}
}
}
//Verificando si es Rublo
echo " Rublos: ".str_replace(",", ".", $rub[0][0])."<br>"; }else{
echo " Rublos: ".$rub[0][0]."<br>";
}
}
}
//Verificando si es Euro
echo " Euro: ".str_replace(",", ".", $eu[0][0]) ."<br>"; }else{
echo " Euro: ".$eu[0][0]."<br>";
}
}
}
//Verificando si es RealBrasileño
echo " Real Brasileño: ".str_replace(",", ".", $rs[0][0]) ."<br>"; }else{
echo " Real Brasileño: ".$rs[0][0]."<br>";
}
}
}
//Verificando si es Libra esterlina
//if(preg_match("/^œ/", $cap[1][$i])>0){
//if(preg_match('/£/', $cap[1][$i])>0){
echo " Libra: ".str_replace(",", ".", $le[0][0]) ."<br>"; }else{
echo " Libra: ".$lem[0][0]."<br>";
}
}
}
$i++;
}
}
}
}
?>
</div>
La respuesta de este codigo es el siguiente:
Gracias de antemano