Random link coding

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Random link coding

    anyone have these coding randomlink.php or randomlink.txt

    #2
    Originally posted by wap-lord View Post
    anyone have these coding randomlink.php or randomlink.txt
    this is what i use for my adverts

    Code:
    $quotes[] = "LINK GOES HERE";
    $quotes[] = "LINK GOES HERE";
    $quotes[] = "LINK GOES HERE";
    $quotes[] = "LINK GOES HERE";
    $quotes[] = "LINK GOES HERE";
    $quotes[] = "LINK GOES HERE";
    $quotes[] = "LINK GOES HERE";
    $quotes[] = "LINK GOES HERE";
    $quotes[] = "LINK GOES HERE";
    $quotes[] = "LINK GOES HERE";
    $quotes[] = "LINK GOES HERE";
    $quotes[] = "LINK GOES HERE";
    $quotes[] = "LINK GOES HERE";
    srand ((double) microtime() * 1000000);  
    $randomquote = rand(0,count($quotes)-1);  
    
    echo " ".$quotes[$randomquote]."<br/></p>";
    HELP THEM WHO HELPS YOU



    i only work on wapdesire v_2 coding only

    Comment


      #3
      can u create a txt file and upload it maybe more people will need it

      Comment


        #4
        ok make a randomlink.php

        put this in it














        <?php
        $urls = array("http://site.com" ,"http://site1.com","http://site2.com");

        //set the text links
        $text = array("java Games " ,"Downloads" ,"New Downloads","chat and downloads Free ");
        srand(time());

        //set the number in (rand()%3); for however many links there are
        $random = (rand()%3);
        echo ("<a href = \"$urls[$random]\">$text[$random]</a><br/>");

        ?>
        and include this file at any page you can add/remove more links and txt
        left wap stuff

        Comment


          #5
          thanx for the help guys

          Comment


            #6
            the $test not showing

            Comment


              #7
              Originally posted by wap-lord View Post
              the $test not showing
              Friend,
              i have this script . Just look here.


              step 1.

              creat a *.txt file with name msg.txt or any other name's which you want

              Now just copy and past this code in your msg.txt file
              Code:
              ::<a href="http://HeArT.wen9.com">HeArT.wen9.com</a>
              ::<a href="http://FileWap.co.cc">FileWap - Shere ur file</a>
              ::<a href="http://Findz.co.cc">Findz - Toplist</a>
              ::<a href="http://CodingForum.freehostia.com">Coding Forum!</a>
              ::<a href="http://sexindia.wen9.com">Free Hot Video!</a>
              ::<a href="http://Im4ChaT.co.cc">Chat site</a>
              step 2.

              after this just put this code where you want to show yor rendom link

              Code:
              $xfile = @file("msg.txt");
              $random_num = rand (0,count($xfile)-1);
              $udata = explode("::",$xfile[$random_num]);
              echo $udata[1];

              Now enjoy this script
              Sandeep DiL (INDIAN)



              Comment


                #8
                what is not showing ? explain your problem and would be nice post your link where are you facing that issue
                left wap stuff

                Comment


                  #9
                  The text eg free download and it shows array Soulwap Entertainment™

                  Comment


                    #10
                    Thankx dil ur code actually works.

                    Comment


                      #11
                      a simple code for lavair or same sites

                      core.php

                      function random_links()
                      {
                      $sec = date(s);

                      if($sec <2)
                      {
                      echo "<a href=\"http://site url \">link name </a><br/>";
                      }
                      else if($sec <5)
                      {

                      echo "<a href=\"http://site url \">link name </a><br/>";
                      }

                      else if($sec <
                      {

                      echo "<a href=\"http://site url \">link name </a><br/>";

                      }

                      else if($sec <11)
                      {

                      echo "<a href=\"http://site url \">link name </a><br/>";

                      }

                      else if($sec <13)
                      {

                      echo "<a href=\"http://site url \">link name </a><br/>";

                      }


                      u can add more and more link by changing $sec<.....

                      use random_links() to show random links on any page .......

                      Comment


                        #12
                        thanx buddy, i'll try that ;)

                        Comment


                          #13
                          Thats cool bro

                          Comment

                          Working...
                          X