Nieuw lid |
|
Hallo.
Ik heb nu hetvolgende scriptje:
$Contents1 = @file( 'http://xbox360.headliner.nl/follow.php?abbr=360party&id=118&c=nl' );
if( $Contents1 == false ) {
mysql_query( "UPDATE nieuws_inhoud SET doodlink = '1' " );
}
else{
for( $i = 0, $j = count( $Contents1 ); $j > $i; $i++ ) {
$line2 = $Contents1[ $i ];
$start2 = $i;
if( isset( $start2 ) && strstr( $line2, '<A HREF="' ) ) {
$url2 = str_replace( '<A HREF="', '', $line2 );
mysql_query( "UPDATE nieuws_inhoud SET Url = '" . addslashes( $url2 ) . "' WHERE id = '" . $Show['id'] . "' " )or die( mysql_error( ) );
}
else{
echo 'There no url found in that file ' . $Show['Url'] . '<br />';
}
}
}
$Contents1 = @file( 'http://xbox360.headliner.nl/follow.php?abbr=360party&id=118&c=nl' ); if( $Contents1 == false ) { mysql_query( "UPDATE nieuws_inhoud SET doodlink = '1' " ); } else{ for( $i = 0, $j = count( $Contents1 ); $j > $i; $i++ ) { $line2 = $Contents1[ $i ]; $start2 = $i; if( isset( $start2 ) && strstr( $line2, '<A HREF="' ) ) { } else{ echo 'There no url found in that file ' . $Show['Url'] . '<br />'; } } }
Dit is de bron van die pagina:
<HTML><BODY topmargin=0>
<table cellspacing=0 cellpadding=0 border=0 width="100%">
<tr valign=top>
<td width=120 NOWRAP><IFRAME WIDTH="120" HEIGHT="600" SCROLLING="No" FRAMEBORDER="0" MARGINHEIGHT="0" MARGINWIDTH="0" SRC="http://adserver.adremedy.com/adiframe|3.0|420|1010380|3510|168|ADTECH;target=_blank"><script language="javascript" src="http://adserver.adremedy.com/addyn|3.0|420|1010380|3510|168|ADTECH;loc=700;target=_blank"></script></IFRAME></td>
<td><br> <A HREF="http://www.360party.nl/nieuws/item/19023/" TARGET="_top">Laad de pagina</A>, of wacht 5 seconden zodat de pagina vanzelf geladen wordt</A><BR><script type="text/javascript">setTimeout("top.location.href='http://www.360party.nl/nieuws/item/19023/'", 5000)</script></td>
</tr>
</table></BODY></HTML>
<HTML><BODY topmargin=0> <table cellspacing=0 cellpadding=0 border=0 width="100%"> <tr valign=top> <td width=120 NOWRAP><IFRAME WIDTH="120" HEIGHT="600" SCROLLING="No" FRAMEBORDER="0" MARGINHEIGHT="0" MARGINWIDTH="0" SRC="http://adserver.adremedy.com/adiframe|3.0|420|1010380|3510|168|ADTECH;target=_blank"><script language="javascript" src="http://adserver.adremedy.com/addyn|3.0|420|1010380|3510|168|ADTECH;loc=700;target=_blank"></script></IFRAME></td> <td><br> <A HREF="http://www.360party.nl/nieuws/item/19023/" TARGET="_top">Laad de pagina</A>, of wacht 5 seconden zodat de pagina vanzelf geladen wordt</A><BR><script type="text/javascript">setTimeout("top.location.href='http://www.360party.nl/nieuws/item/19023/'", 5000)</script></td> </tr> </table></BODY></HTML>
De bron van:
http://xbox360....8&c=nl
Heeft iemand een idee wat ik fout doe?
De bedoeling is om de url van de link te pakken en in de database weg te schrijven.
In de database komt niks te staan, en deze tekst komt er telkens:
There no url found in that file ...
M.v.g.
Jeffrey
|