Ik wil met PHP een bot voor Klikkaa/Superrotator schrijven.
Om te beginnen alleen kliklinks.
Weet iemand hoe ik hier moet aan beginnen?
Om te beginnen alleen kliklinks.
Weet iemand hoe ik hier moet aan beginnen?
Sanderc schreef:Aangezien ik er zonet een gemaakt heb, ja.Ik wil met PHP een bot voor Klikkaa/Superrotator schrijven.
Om te beginnen alleen kliklinks.
Weet iemand hoe ik hier moet aan beginnen?
Sanderc schreef:"curl tutorial in nederlands", op google. Vind je niks, dan is er geen nederlandse curl tutorial, zo simpel is hetWeet iemand dan een goede cURL tutorial, liefst in het Nederlands?
Raaoul schreef:Ik vraag een goede, daarmee bedoel ik dus tuts die jullie echt aanraden, dus ik moet niet zo een blaf reactie te hebben"curl tutorial in nederlands", op google. Vind je niks, dan is er geen nederlandse curl tutorial, zo simpel is hetEerdere citaten tonen
Sanderc schreef:Weet iemand dan een goede cURL tutorial, liefst in het Nederlands?
.Sanderc schreef:Gewoon php.net en andersIk vraag een goede, daarmee bedoel ik dus tuts die jullie echt aanraden, dus ik moet niet zo een blaf reactie te hebbenEerdere citaten tonen
Raaoul schreef:"curl tutorial in nederlands", op google. Vind je niks, dan is er geen nederlandse curl tutorial, zo simpel is hetEerdere citaten tonen
Sanderc schreef:Weet iemand dan een goede cURL tutorial, liefst in het Nederlands?.

Gamedealer schreef:Nog Fatal error: Cannot redeclare makelinksclickable() (previously declared in /home/marvinr51/domains/habbotjes.be/public_html/0------.php:23) in /home/marvinr51/domains/habbotjes.be/public_html/0--------.php on line 23Eerdere citaten tonen
Nickjexx schreef:Hoe zou het dan moeten?Eerdere citaten tonen
Gamedealer schreef:Naar mijn idee is het niet mogelijk om een functie in een string te stoppen?[COLOR= #0000BB]<?php[/COLOR] [COLOR= #007700]function[/COLOR] makeLinksClickable[COLOR= #007700]([/COLOR][COLOR= #0000BB]$text[/COLOR][COLOR= #007700]) {[/COLOR] [COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/preg_replace"]preg_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"#(^|[n ])([w]+?://[w]+[^ "nrt< ]*)#"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"1<a href="2" target="_blank">2</a>"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR] [COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/preg_replace"]preg_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"#(^|[n ])((www|ftp).[^ "tnr< ]*)#"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"1<a href="http://2" target="_blank">2</a>"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR] [COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/preg_replace"]preg_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"/@(w+)/"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"<a href="http://www.twitter.com/1" target="_blank">@1</a>"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR] [COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/preg_replace"]preg_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"/#(w+)/"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"<a href="http://search.twitter.com/search?q=1" target="_blank">#1</a>"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR] [URL="http://www.php.net/return"]return[/URL] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]; }[/COLOR] [COLOR= #0000BB]$tweet[/COLOR] [COLOR= #007700]=[/COLOR] makeLinksClickable[COLOR= #007700]([/COLOR][COLOR= #0000BB]$tweet[/COLOR][COLOR= #007700]);[/COLOR] [COLOR= #0000BB]$string[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000] <div id="tweet[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$conta[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]"> <a target="_blank" href="http://twitter.com/[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$username[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]"> <img src="http://api.twitter.com/1/users/profile_image/[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$username[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]" border="0" style="float:left; padding:3px;" width="48" height="48" title="@[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$username[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]" /> </a> <a title="@[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$username[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]" target="_blank" href="http://twitter.com/[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$username[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]"> <b>[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$nome[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]</b> </a>: [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$tweet[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000] <br> <small> <span> <a href="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$link[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]" target="_blank" style="color:#444444; text-decoration:none;">[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$data[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]</a> </span> </small> </div> <div style="clear:both;"></div> [/COLOR][COLOR= #007700];[/COLOR] ?>

Raaoul schreef:Ja zal best, maat ik heb het al gevonden verkeerde volgorde ja.Oplossing: netter coderen. Die code ziet er uit zoals dikke stront in een trechter.. omgekeerd
Nickjexx schreef:Een beetje lezen doet geen kwaad:Nog Fatal error: Cannot redeclare makelinksclickable() (previously declared in /home/marvinr51/domains/habbotjes.be/public_html/0------.php:23) in /home/marvinr51/domains/habbotjes.be/public_html/0--------.php on line 23Eerdere citaten tonen
Gamedealer schreef:Eerdere citaten tonen
Nickjexx schreef:Hoe zou het dan moeten?Eerdere citaten tonen
Gamedealer schreef:Naar mijn idee is het niet mogelijk om een functie in een string te stoppen?[COLOR= #0000BB]<?php[/COLOR] [COLOR= #007700]function[/COLOR] makeLinksClickable[COLOR= #007700]([/COLOR][COLOR= #0000BB]$text[/COLOR][COLOR= #007700]) {[/COLOR] [COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/preg_replace"]preg_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"#(^|[n ])([w]+?://[w]+[^ "nrt< ]*)#"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"1<a href="2" target="_blank">2</a>"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR] [COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/preg_replace"]preg_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"#(^|[n ])((www|ftp).[^ "tnr< ]*)#"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"1<a href="http://2" target="_blank">2</a>"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR] [COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/preg_replace"]preg_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"/@(w+)/"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"<a href="http://www.twitter.com/1" target="_blank">@1</a>"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR] [COLOR= #0000BB]$text[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/preg_replace"]preg_replace[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"/#(w+)/"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]"<a href="http://search.twitter.com/search?q=1" target="_blank">#1</a>"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]);[/COLOR] [URL="http://www.php.net/return"]return[/URL] [COLOR= #0000BB]$text[/COLOR][COLOR= #007700]; }[/COLOR] [COLOR= #0000BB]$tweet[/COLOR] [COLOR= #007700]=[/COLOR] makeLinksClickable[COLOR= #007700]([/COLOR][COLOR= #0000BB]$tweet[/COLOR][COLOR= #007700]);[/COLOR] [COLOR= #0000BB]$string[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000] <div id="tweet[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$conta[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]"> <a target="_blank" href="http://twitter.com/[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$username[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]"> <img src="http://api.twitter.com/1/users/profile_image/[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$username[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]" border="0" style="float:left; padding:3px;" width="48" height="48" title="@[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$username[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]" /> </a> <a title="@[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$username[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]" target="_blank" href="http://twitter.com/[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$username[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]"> <b>[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$nome[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]</b> </a>: [/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$tweet[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000] <br> <small> <span> <a href="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$link[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]" target="_blank" style="color:#444444; text-decoration:none;">[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$data[/COLOR][COLOR= #007700].[/COLOR][COLOR= #DD0000]</a> </span> </small> </div> <div style="clear:both;"></div> [/COLOR][COLOR= #007700];[/COLOR] ?>
Tnx is opgelost
<img src="[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]banner[/COLOR][COLOR= #007700]])[/COLOR] ?>" alt="[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]titel[/COLOR][COLOR= #007700]])[/COLOR] ?> Banner"/>