PHP hulp

Gestart doorBen21 reacties37 weergaven

22 berichten · pagina 1 van 2

Berichten
832
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/If"]If[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]] <=[/COLOR] [COLOR= #0000BB]10000[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]] >=[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700])
{[/COLOR]
      [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Get waarde ligt in het bereik[/COLOR][COLOR= #007700];
}[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
      [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Get waarde ligt niet in het bereik[/COLOR][COLOR= #007700];
}[/COLOR]
?>


Zoiets?
0
Ben

Lid · Topicstarter

Berichten
4.598
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Guillamos schreef:
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/If"]If[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]] <=[/COLOR] [COLOR= #0000BB]10000[/COLOR] [COLOR= #007700]&&[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]] >=[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700])
{[/COLOR]
      [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Get waarde ligt in het bereik[/COLOR][COLOR= #007700];
}[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
      [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Get waarde ligt niet in het bereik[/COLOR][COLOR= #007700];
}[/COLOR]
?>
Zoiets?

Maar hoe laat je hem dan al die links bezoeken?
0
Thom

Lid

Berichten
10.654
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
hmm
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
cURL?
0
Thom

Lid

Berichten
10.654
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]

[URL="http://www.php.net/for"]for[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$i[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #0000BB]$i[/COLOR] [COLOR= #007700]<=[/COLOR] [COLOR= #0000BB]1000[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #0000BB]$i[/COLOR][COLOR= #007700]++) {[/COLOR]
  [URL="http://www.php.net/file_get_contents"]file_get_contents[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]http://.../dagklik.php?id=[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$i[/COLOR][COLOR= #007700]);
}[/COLOR]
  
?>


geen idee of dit werkt q
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Klinkt niet echt zuiver wat de TS wilt doen yummie
Maar er zal vast wel een IP-beveiliging op zitten, als het voor niet-legale doeleinden bedoeld is wink.
0
Ben

Lid · Topicstarter

Berichten
4.598
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/error_reporting"]error_reporting[/URL][COLOR= #007700]([/COLOR]E_ALL[COLOR= #007700]);[/COLOR]
 [COLOR= #0000BB]$ch[/COLOR] [COLOR= #007700]=[/COLOR] curl_init[COLOR= #007700]();[/COLOR]
    [COLOR= #0000BB]$user[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]x[/COLOR][COLOR= #007700];[/COLOR]
    [COLOR= #0000BB]$pass[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]x[/COLOR][COLOR= #007700];[/COLOR]
    curl_setopt [COLOR= #007700]([/COLOR][COLOR= #0000BB]$ch[/COLOR][COLOR= #007700],[/COLOR] CURLOPT_URL[COLOR= #007700],[/COLOR] [COLOR= #DD0000]http://x/inloggen.php[/COLOR][COLOR= #007700]);[/COLOR]
    curl_setopt [COLOR= #007700]([/COLOR][COLOR= #0000BB]$ch[/COLOR][COLOR= #007700],[/COLOR] CURLOPT_POST[COLOR= #007700],[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700]);[/COLOR]
    curl_setopt [COLOR= #007700]([/COLOR][COLOR= #0000BB]$ch[/COLOR][COLOR= #007700],[/COLOR] CURLOPT_POSTFIELDS[COLOR= #007700],[/COLOR] [COLOR= #DD0000]gebruikersnaam=[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$user[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]&wachtwoord=[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$pass[/COLOR][COLOR= #007700]);[/COLOR]
    curl_setopt [COLOR= #007700]([/COLOR][COLOR= #0000BB]$ch[/COLOR][COLOR= #007700],[/COLOR] CURLOPT_HEADER[COLOR= #007700],[/COLOR] FALSE[COLOR= #007700]);[/COLOR] 
    curl_setopt [COLOR= #007700]([/COLOR][COLOR= #0000BB]$ch[/COLOR][COLOR= #007700],[/COLOR] CURLOPT_COOKIEJAR[COLOR= #007700],[/COLOR] [COLOR= #DD0000]cookie.txt[/COLOR][COLOR= #007700]);[/COLOR] 
    curl_setopt [COLOR= #007700]([/COLOR][COLOR= #0000BB]$ch[/COLOR][COLOR= #007700],[/COLOR] CURLOPT_RETURNTRANSFER[COLOR= #007700],[/COLOR] TRUE[COLOR= #007700]);[/COLOR]
    curl_setopt [COLOR= #007700]([/COLOR][COLOR= #0000BB]$ch[/COLOR][COLOR= #007700],[/COLOR] CURLOPT_USERAGENT[COLOR= #007700],[/COLOR] [COLOR= #DD0000]Mozilla/4.0[/COLOR][COLOR= #007700]);[/COLOR]
    
    curl_exec [COLOR= #007700]([/COLOR][COLOR= #0000BB]$ch[/COLOR][COLOR= #007700]);[/COLOR]
    
    [URL="http://www.php.net/for"]for[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$i[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]1[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #0000BB]$i[/COLOR] [COLOR= #007700]<=[/COLOR] [COLOR= #0000BB]1000[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #0000BB]$i[/COLOR][COLOR= #007700]++) {[/COLOR]
  [URL="http://www.php.net/file_get_contents"]file_get_contents[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]http:/x/dagklik.php?id=[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$i[/COLOR][COLOR= #007700]);
    }[/COLOR]

?>


Dus dit moet werken of? yummie
toevoeging op 2 maart 2012, 17:41:05:

curl_exec ($ch);
    for ($i = 1; $i <= 1000; $i++) {
    curl_setopt ($ch, CURLOPT_URL, http://wwwx.nl/dagklik.php?id=.$i);
    }


Of dit?
0
Thom

Lid

Berichten
10.654
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
dat 2e ;p
0
Ben

Lid · Topicstarter

Berichten
4.598
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Thommiee schreef:
dat 2e ;p
Nou hij werkt niet sadleyEn ik snap niet waarom..
0
Thom

Lid

Berichten
10.654
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Wat heb je dan
0
Ben

Lid · Topicstarter

Berichten
4.598
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Een witte pagina, maar kan dit zijn omdat hij ze te snel laad/sluit oid?
Kan daar bijv een interval op, of?
0
Thom

Lid

Berichten
10.654
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik bedoel je code..

Maar volgens mij hoor je ook niks te zien hoor? ;p
Doe is:

for ($i = 1; $i <= 1000; $i++) {
    curl_setopt ($ch, CURLOPT_URL, http://wwwx.nl/dagklik.php?id=.$i);
echo <br />http://wwwx.nl/dagklik.php?id=.$i. bekeken.;
}
0
Ben

Lid · Topicstarter

Berichten
4.598
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Thommiee schreef:
Ik bedoel je code..

Maar volgens mij hoor je ook niks te zien hoor? ;p
Doe is:
for ($i = 1; $i <= 1000; $i++) {
    curl_setopt ($ch, CURLOPT_URL, http://wwwx.nl/dagklik.php?id=.$i);
echo <br />http://wwwx.nl/dagklik.php?id=.$i. bekeken.;
}


Ja, maar mijn saldo op die site stijgt niet yummie En zal het ff toevoegen, sec.
0
Thom

Lid

Berichten
10.654
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
O..
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren