Ver Mensaje Individual
  #1 (permalink)  
Antiguo 11/01/2013, 13:52
carlosuc99
 
Fecha de Ingreso: junio-2011
Mensajes: 342
Antigüedad: 12 años, 10 meses
Puntos: 5
Exclamación Eliminar parte del código fuente obtenido

Buenas,

Hago esto:

Código PHP:
Ver original
  1. $var = file_get_contents("urlobtengo");

El código fuente de la URL que estoy obteniendo es este:

Código HTML:
Ver original
  1. body { font-family: verdana; font-size: 12 }
  2. table { font-family: verdana; font-size: 12; border-collapse:collapse }
  3. td { font-family: verdana; font-size: 12; border:solid black 0.1pt; padding:3pt }
  4. <title>RouteFinder - LEMD - LEBL - Not for real world navigation</title>
  5. </head>
  6. <font size=+1 color=#0000FF><a href=./><b>RouteFinder</b></a></font><br><i>Route generator for PC flight simulation use - <b>NOT FOR REAL WORLD NAVIGATION</b></i><br>
  7. (C)2005-2007 ASA srl - Italy
  8. <hr>
  9. Computed route from <b>MADRID/BARAJAS</b> (LEMD, LE) to <b>BARCELONA/EL PRAT</b> (LEBL, LE): 8 fixes, 267.6 nautical miles<br><br><tt>Cruise altitude between FL330 and FL330<br> <b>LEMD</b> (0.0nm) -SID->   <b>PINAR</b> (53.3nm) -UN870->  <b>SEGRE</b> (63.7nm) -UN870-> <br> <b>BRITO</b> (77.7nm) -UN870->  <b>PISUS</b> (106.7nm) -UN870->  <b>PONEN</b> (148.7nm) -UT600-> <br> <b>CASPE</b> (182.8nm) -STAR->  <b>LEBL</b> (267.6nm)         </tt></p>Details:<hr><p><pre>ID      FREQ   TRK   DIST   Coords                       Name/Remarks
  10. LEMD             0      0   N40&deg;28'20.00" W003&deg;33'39.00" MADRID/BARAJAS
  11. PINAR           55     53   N40&deg;58'49.06" W002&deg;35'56.99" PINAR
  12. SEGRE           76     10   N41&deg;01'22.18" W002&deg;22'35.27" SEGRE
  13. BRITO           76     14   N41&deg;04'44.65" W002&deg;04'40.88" BRITO
  14. PISUS           76     29   N41&deg;11'37.20" W001&deg;27'18.00" PISUS
  15. PONEN           76     42   N41&deg;21'14.00" W000&deg;32'51.41" PONEN
  16. CASPE           98     34   N41&deg;16'06.42" E000&deg;11'57.78" CASPE
  17. LEBL            88     85   N41&deg;17'49.00" E002&deg;04'42.00" BARCELONA/EL PRAT
  18. </pre></p>Tracks are magnetic, distances are in nautical miles.<hr>
  19. <tt><b>LEMD</b> SID <b>PINAR</b> UN870 <b>PONEN</b> UT600 <b>CASPE</b> STAR <b>LEBL</b></tt>
  20. <hr>
  21. <a href="javascript:history.back()">[Back]</a>
  22. </body>
  23. </html>

Cómo puedo hacer para que sólo se me muestre esta parte del código y eliminar el resto?

Código HTML:
Ver original
  1. <hr>
  2. <tt><b>LEMD</b> SID <b>PINAR</b> UN870 <b>PONEN</b> UT600 <b>CASPE</b> STAR <b>LEBL</b></tt>
  3. <hr>