FAQ |
Kalender |
![]() |
#10 | ||
|
|||
Nykomling
|
Citat:
Koden fungerar bra så långt. Men den hämtar dock bara info från sista länken "raden" i list-filen. <?php $list = file_get_contents("listan.txt"); $urls = explode("\n",$list); foreach($urls as $url) { $file = file_get_contents($url); $tablestart=strpos($file,"<table>"); $tableslut = strpos($file,"</table>"); $spec=substr($file,$tablestart,$tableslut-$tablestart)."</table>"; /* Insert other blablabla-code here */ } ?> <?php echo $spec; ?> Senast redigerad av it-shoppen den 2010-02-10 klockan 10:05 |
||
![]() |
![]() |
|
|