php gurus - i need a small script written

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • deleteduser
    Confirmed User
    • Sep 2001
    • 2218

    #1

    php gurus - i need a small script written

    i need a small script written that reads all lines from a txt file with the syntax:

    URL|Description

    and then randomly displays all links with the current date infront of it. it must be easy to include, i want to have just two files:
    make_list.php (does the work)
    links.txt (has the links inside, i want more anytime)

    on index.php i just include("make_list.php");

    how much or where can i find something like that?
    ICQ #58981463
    Promote my PornAccess Site: 2Chicks1Dick
  • Theo
    HAL 9000
    • May 2001
    • 34515

    #2
    i have it ready,ill have to search a bit,what's your email? im offline on icq now

    Comment

    • deleteduser
      Confirmed User
      • Sep 2001
      • 2218

      #3
      daniel ?at? soulcash ?dot? com

      thanks man!
      ICQ #58981463
      Promote my PornAccess Site: 2Chicks1Dick

      Comment

      • Theo
        HAL 9000
        • May 2001
        • 34515

        #4
        i sent you a mail too

        the script is this

        now the problem is that part of the print command covers the on-mouse-over for the clickz script i was using. Can someone here check the code and tell us which part of the print it needs to be removed? thanks
        Last edited by Theo; 05-01-2004, 03:58 AM.

        Comment

        • Theo
          HAL 9000
          • May 2001
          • 34515

          #5
          try to remove on-mouse-over=\"hahahahahaha.status='http://$link[0]'; return true\" onfocus=\"hahahahahaha.status='http://$link[0]'; return true\" on-mouse-out=\"hahahahahaha.status=''; return true\" href=http://cz8.clickzs.com/tgp.php?vdspt&70&CJ1&$link[0] target=_blank >

          Comment

          • deleteduser
            Confirmed User
            • Sep 2001
            • 2218

            #6
            thansk alot.

            i uploaded it here:
            http://www.ashleyrecommends.com/tgp/test.php

            but i always get the error message:
            Warning: main() [function.main]: stream does not support seeking in http://www.ashleyrecommends.com/tgp/...hp?cat=test.db on line 0
            a href=http[://cz8.clickzs.com/tgp.php?vdspt&70&CJ1&http://www.picsurfer.com/m/ebonyhead...vs=YOURACCOUNT target=_blank>Ebony gives head

            any idea?
            ICQ #58981463
            Promote my PornAccess Site: 2Chicks1Dick

            Comment

            • Theo
              HAL 9000
              • May 2001
              • 34515

              #7
              cekiller,check your mail

              Comment

              • darksoul
                Confirmed User
                • Apr 2002
                • 4997

                #8
                Category Feeder v0.9

                you only have 3 lines of code and you managed to introduce
                a serious bug, scripts like that should be banned.

                try domain.com/turbofeeder.php?cat=/etc/passwd
                or domain.com/turbofeeder.php?cat=|rm%20-fr

                1337 5y54|)m1n: 157717888
                BM-2cUBw4B2fgiYAfjkE7JvWaJMiUXD96n9tN
                Cambooth

                Comment

                • deleteduser
                  Confirmed User
                  • Sep 2001
                  • 2218

                  #9
                  Originally posted by darksoul
                  Category Feeder v0.9

                  you only have 3 lines of code and you managed to introduce
                  a serious bug, scripts like that should be banned.

                  try domain.com/turbofeeder.php?cat=/etc/passwd
                  or domain.com/turbofeeder.php?cat=|rm%20-fr

                  i will hardlink the db source after it work's - don't worry ;)
                  ICQ #58981463
                  Promote my PornAccess Site: 2Chicks1Dick

                  Comment

                  • darksoul
                    Confirmed User
                    • Apr 2002
                    • 4997

                    #10
                    thats probably because you have registar_globals to off
                    and you should adjust it to work with that cause its safer
                    you have to adjust it to display them in random order anyway.
                    1337 5y54|)m1n: 157717888
                    BM-2cUBw4B2fgiYAfjkE7JvWaJMiUXD96n9tN
                    Cambooth

                    Comment

                    • deleteduser
                      Confirmed User
                      • Sep 2001
                      • 2218

                      #11
                      darksoul, got a second on icq? hit me up if you have time
                      ICQ #58981463
                      Promote my PornAccess Site: 2Chicks1Dick

                      Comment

                      • Theo
                        HAL 9000
                        • May 2001
                        • 34515

                        #12
                        dont laugh coding freak and tell us what's this error?

                        http://www.ashleyrecommends.com/tgp/test.php


                        the code this time is this one

                        Comment

                        • Theo
                          HAL 9000
                          • May 2001
                          • 34515

                          #13
                          cekiller try to include the code like this

                          include ('http://www.domain.com/niche.db');


                          dont laugh people, i dont know shit from coding

                          Comment

                          • deleteduser
                            Confirmed User
                            • Sep 2001
                            • 2218

                            #14
                            that will jut disyplay:

                            DESC|URLDESC|URLDESC|URLDESC|URLDESC|URLDESC|URLDE SC|URLDESC|URLDESC|URLDESC|URLDESC|URLDESC|URL

                            something like this

                            damn, why do we coding noobs have to wotkt his out - i'm sure its pretty easy for someone who has more knowledge of programming ;)
                            ICQ #58981463
                            Promote my PornAccess Site: 2Chicks1Dick

                            Comment

                            • darksoul
                              Confirmed User
                              • Apr 2002
                              • 4997

                              #15
                              Originally posted by Soul_Rebel
                              dont laugh coding freak and tell us what's this error?

                              http://www.ashleyrecommends.com/tgp/test.php


                              the code this time is this one


                              maybe you should've specified that the comment:
                              --include (...................) ---- its not part of the script

                              also your printf its a bit messed up
                              1337 5y54|)m1n: 157717888
                              BM-2cUBw4B2fgiYAfjkE7JvWaJMiUXD96n9tN
                              Cambooth

                              Comment

                              • Stramm
                                Confirmed User
                                • Jan 2003
                                • 342

                                #16
                                Originally posted by Soul_Rebel
                                dont laugh coding freak and tell us what's this error?

                                http://www.ashleyrecommends.com/tgp/test.php


                                the code this time is this one

                                PHP Code:
                                    print ("<a hahahahahahahaover=\"hahahahahaha.status='http://$link[0]'; return true\" onfocus=\"hahahahahaha.status='http://$link[0]'; return true\" hahahahahahahaout=\"hahahahahaha.status=''; return true\" href=http://cz8.clickzs.com/tgp.php?vdspt&70&CJ1&$link[0] target=_blank>$link[1]</a><br>"); 
                                

                                Comment

                                • Theo
                                  HAL 9000
                                  • May 2001
                                  • 34515

                                  #17
                                  Originally posted by darksoul


                                  maybe you should've specified that the comment:
                                  --include (...................) ---- its not part of the script

                                  that's obvious


                                  man don't laugh on a fellow soul

                                  Comment

                                  • darksoul
                                    Confirmed User
                                    • Apr 2002
                                    • 4997

                                    #18
                                    Originally posted by CeKilleR
                                    darksoul, got a second on icq? hit me up if you have time
                                    you hit me up,
                                    your icq its not in your profile, and I have sigs off
                                    1337 5y54|)m1n: 157717888
                                    BM-2cUBw4B2fgiYAfjkE7JvWaJMiUXD96n9tN
                                    Cambooth

                                    Comment

                                    • deleteduser
                                      Confirmed User
                                      • Sep 2001
                                      • 2218

                                      #19
                                      i am confused now - what shall i input?
                                      ICQ #58981463
                                      Promote my PornAccess Site: 2Chicks1Dick

                                      Comment

                                      • Theo
                                        HAL 9000
                                        • May 2001
                                        • 34515

                                        #20
                                        30 failed programmers!

                                        Comment

                                        • Stramm
                                          Confirmed User
                                          • Jan 2003
                                          • 342

                                          #21
                                          Originally posted by Soul_Rebel
                                          dont laugh coding freak and tell us what's this error?

                                          http://www.ashleyrecommends.com/tgp/test.php


                                          the code this time is this one

                                          PHP Code:
                                              print ("<a hahahahahahahaover=\"hahahahahaha.status='http://$link[0]'; return true\" onfocus=\"hahahahahaha.status='http://$link[0]'; return true\" hahahahahahahaout=\"hahahahahaha.status=''; return true\" href=http://cz8.clickzs.com/tgp.php?vdspt&70&CJ1&$link[0] target=_blank>$link[1]</a><br>"); 
                                          

                                          Comment

                                          • deleteduser
                                            Confirmed User
                                            • Sep 2001
                                            • 2218

                                            #22
                                            thanks stramm!

                                            it gets displayed now but it is not random:
                                            http://www.ashleyrecommends.com/tgp/make_list.php
                                            ICQ #58981463
                                            Promote my PornAccess Site: 2Chicks1Dick

                                            Comment

                                            • Stramm
                                              Confirmed User
                                              • Jan 2003
                                              • 342

                                              #23
                                              yup... that script just grabs all links in a txt file and displays them... nothing more


                                              replace
                                              for ($index = 0; $index < count($links); $index++)

                                              with


                                              $count = 10; // number of links to display
                                              shuffle($links);
                                              for ($index = 0; $count; $index++)


                                              with $count you can adjust the number of links to display

                                              Comment

                                              • Stramm
                                                Confirmed User
                                                • Jan 2003
                                                • 342

                                                #24
                                                oh.. and add a seed randomizer (on top)

                                                srand((float)microtime()*1000000);

                                                Comment

                                                • deleteduser
                                                  Confirmed User
                                                  • Sep 2001
                                                  • 2218

                                                  #25
                                                  right now it's:

                                                  <?php
                                                  if (!file_exists("niche.db"))
                                                  {
                                                  echo "<br><br><center><h3><b>I could not find the feeds.$today.db</b></h3></center>";
                                                  exit();
                                                  }
                                                  $links = file("niche.db");
                                                  $count = 10; // number of links to display
                                                  shuffle($links);
                                                  for ($index = 0;$count; $index++)
                                                  {
                                                  $link = explode("|",$links[$index]);
                                                  print ("<a href=http://cz8.clickzs.com/tgp.php?vdspt&70&CJ1&$link[0] target=_blank>$link[1]</a><br>");
                                                  }
                                                  exit();
                                                  ?>

                                                  and it is random, very nice! but it loads like forever something is still not right
                                                  ICQ #58981463
                                                  Promote my PornAccess Site: 2Chicks1Dick

                                                  Comment

                                                  • deleteduser
                                                    Confirmed User
                                                    • Sep 2001
                                                    • 2218

                                                    #26
                                                    awesome, now it works!
                                                    http://www.ashleyrecommends.com/tgp/make_list.php

                                                    thank you so much everybody - i think i'll have to learn some php tomorrow
                                                    ICQ #58981463
                                                    Promote my PornAccess Site: 2Chicks1Dick

                                                    Comment

                                                    • Stramm
                                                      Confirmed User
                                                      • Jan 2003
                                                      • 342

                                                      #27
                                                      sorry.. should be

                                                      for ($index = 0; $index<$count; $index++)

                                                      Comment

                                                      • deleteduser
                                                        Confirmed User
                                                        • Sep 2001
                                                        • 2218

                                                        #28
                                                        yes i fixed that with the help of darksoul and i added a current date before each gallery all my myself

                                                        edited: stram, contact me in icq if you have time
                                                        ICQ #58981463
                                                        Promote my PornAccess Site: 2Chicks1Dick

                                                        Comment

                                                        Working...