Kleine Vragen Topic #1

Gestart doorLennard4.284 reacties15.585 weergaven

4.285 berichten · pagina 58 van 286

Berichten
11.263
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Ik wil met PHP een bot voor Klikkaa/Superrotator schrijven.
Om te beginnen alleen kliklinks.

Weet iemand hoe ik hier moet aan beginnen?
0
Berichten
3.112
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Sanderc schreef:
Ik wil met PHP een bot voor Klikkaa/Superrotator schrijven.
Om te beginnen alleen kliklinks.

Weet iemand hoe ik hier moet aan beginnen?
Aangezien ik er zonet een gemaakt heb, ja.

Functies:
Curl, preg_match(_all)
0
Berichten
11.263
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Weet iemand dan een goede cURL tutorial, liefst in het Nederlands?
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Sanderc schreef:
Weet iemand dan een goede cURL tutorial, liefst in het Nederlands?
"curl tutorial in nederlands", op google. Vind je niks, dan is er geen nederlandse curl tutorial, zo simpel is het
0
Berichten
11.263
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Raaoul schreef:
Eerdere citaten tonen
Sanderc schreef:
Weet iemand dan een goede cURL tutorial, liefst in het Nederlands?
"curl tutorial in nederlands", op google. Vind je niks, dan is er geen nederlandse curl tutorial, zo simpel is het
Ik vraag een goede, daarmee bedoel ik dus tuts die jullie echt aanraden, dus ik moet niet zo een blaf reactie te hebben emo.
0
Berichten
3.112
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Sanderc schreef:
Eerdere citaten tonen
Raaoul schreef:
Eerdere citaten tonen
Sanderc schreef:
Weet iemand dan een goede cURL tutorial, liefst in het Nederlands?
"curl tutorial in nederlands", op google. Vind je niks, dan is er geen nederlandse curl tutorial, zo simpel is het
Ik vraag een goede, daarmee bedoel ik dus tuts die jullie echt aanraden, dus ik moet niet zo een blaf reactie te hebben emo.
Gewoon php.net en anders
http://www.sitemasters.be/tutorials/1/1/437/PHP/CURL_nader_verklaard
http://www.phphulp.nl/php/tutorial/php-functies/fopen-vervangen-door-curl/457/
http://phpsense.com/2007/php-curl-functions/
http://digitalplace.nl/tutorials/programmeren/48/spammen-met-curl

Er zit vast wel iets nuttigs tussen.
0
Berichten
14.025
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien
Ik wil de aantal spelers ophalen van deze. Met behulp van de functie file_get_contents of die die richting. Alleen werkt het niet met file_get_contents hoe wel?
0
Berichten
3.112
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Dylanh schreef:
Ik wil de aantal spelers ophalen van deze. Met behulp van de functie file_get_contents of die die richting. Alleen werkt het niet met file_get_contents hoe wel?
Curl?
0
Berichten
2.609
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Gamedealer schreef:
Eerdere citaten tonen
Nickjexx schreef:
Eerdere citaten tonen
Gamedealer schreef:
Naar mijn idee is het niet mogelijk om een functie in een string te stoppen?
Hoe zou het dan moeten?
[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]
?>

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 23
Tnx is opgelost biggrin
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Oplossing: netter coderen. Die code ziet er uit zoals dikke stront in een trechter.. omgekeerd
0
Berichten
2.609
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Raaoul schreef:
Oplossing: netter coderen. Die code ziet er uit zoals dikke stront in een trechter.. omgekeerd
Ja zal best, maat ik heb het al gevonden verkeerde volgorde ja.
0
Berichten
14.025
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien
Gamedealer schreef:
Eerdere citaten tonen
Dylanh schreef:
Ik wil de aantal spelers ophalen van deze. Met behulp van de functie file_get_contents of die die richting. Alleen werkt het niet met file_get_contents hoe wel?
Curl?
Dat zoek ik het later wel uit.
0
Rik

Lid

Berichten
18.393
Reputatie
0
Punten
0,04
Lid sinds
Laatst gezien
Nickjexx schreef:
Eerdere citaten tonen
Gamedealer schreef:
Eerdere citaten tonen
Nickjexx schreef:
Eerdere citaten tonen
Gamedealer schreef:
Naar mijn idee is het niet mogelijk om een functie in een string te stoppen?
Hoe zou het dan moeten?
[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]
?>

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 23
Tnx is opgelost biggrin
Een beetje lezen doet geen kwaad:
"Cannot redeclare makelinksclickable()" -> "Kan makelinksclickable() niet opnieuw declareren".

Goh, wat zou je fout hebben gedaan? Een functie misschien 2x aan hebben gemaakt?
0
Ewan

Lid

Berichten
8.302
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hoi,

Ik ben bezig met een nieuws systeem, je kan bij het posten een banner url opgeven. De banner komt dan in het bericht te staan. Nu wil ik dat als hij geen banner kan vinden dit

<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"/>


niet laat zien, hoe kan ik dat doen?

Groeten,
Ewan
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