All you clever coder types ! Beginners PHP Question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • CurrentlySober
    Too lazy to wipe my ass
    • Aug 2002
    • 38944

    #1

    All you clever coder types ! Beginners PHP Question

    Just starting 'learning' PHP...

    Can a more experienced coder show me the way?

    What Im looking to do, is to have a sig on a surfer forum that reads 'CLICK HERE! LUCKY DIP!'

    They click the link it goes to one-of-my-domians.com/php-page.php

    That php page has 3 or 5 different URLs programmed into it... ie domain-1.com/blog/ domain-2.com/sexygirls/index.html and domain-3.com etc etc...

    When the sig clicking surfer hits the php page at one-of-my-domians.com/php-page.php it randomly chooses one of the 3 or 5 domains, and sends him to it... In other words, per click each domain has a 1 in 3 or 1 in 5 chance of getting the 'hit'...

    I'm not interested in 'Weighting' the results... Im just trying to learn the simplest, cleanest way to use PHP to split the results 'randomly' ?

    Whats the right PHP to do this a simple as poss?

    Be gentle with me LOL I'm genuinely TRYING to learn, and we all have to start somewhere !


    👁️ 👍️ 💩
  • JayS
    Confirmed User
    • Oct 2007
    • 138

    #2
    Originally posted by ThatGuyInTheCorner
    Be gentle with me LOL I'm genuinely TRYING to learn, and we all have to start somewhere !
    http://php.net/array_rand

    Comment

    • mikeyddddd
      Viva la vulva!
      • Mar 2003
      • 16557

      #3
      I do it like this:

      <?
      $urls = file ("random.txt"); //replace with the name of your file
      srand(time());
      $count = count($urls);
      $random = (rand()%$count);
      Header("Location: $urls[$random]");
      ?>

      random.txt contains a list of URLs.

      You could put the URLs into an array in the code if you prefer. I have them in a separate file so I can use them from other code.

      Example is in my sig.



      Comment

      • gornyhuy
        Chafed.
        • May 2002
        • 18041

        #4
        What mikey said, but if you don't wanna use a file for the urls, here's an easy way to do the arrray:

        <?
        $linkArray[0]="http://www.google.com";
        $linkArray[1]="http://www.yahoo.com.com";
        srand(time());
        $count = count($linkArray);
        $random = (rand()&#37;$count);
        Header("Location: $linkArray[$random]");
        ?>

        icq:159548293

        Comment

        • ScriptWorkz
          Confirmed User
          • Jul 2007
          • 274

          #5
          Originally posted by mikeyddddd
          I do it like this:

          <?
          $urls = file ("random.txt"); //replace with the name of your file
          srand(time());
          $count = count($urls);
          $random = (rand()&#37;$count);
          Header("Location: $urls[$random]");
          ?>

          random.txt contains a list of URLs.

          You could put the URLs into an array in the code if you prefer. I have them in a separate file so I can use them from other code.

          Example is in my sig.



          this is pretty much the best way to do it, personally i'd just make the code like this if you just need simple

          PHP Code:
          <?php
          $urls = file("./random.txt");
          exit(header("Location: " . $urls[rand(0, (count($urls)-1))]));
          ?>

          Comment

          • tranza
            ICQ: 197-556-237
            • Jun 2003
            • 57559

            #6
            Man this is crazy!!
            I'm just a newbie.

            Comment

            • munki
              Do Fun Shit.
              • Dec 2004
              • 13393

              #7
              You tricky script kiddies you...

              I have the simplest tastes. I am always satisfied with the best.” -Oscar Wilde

              Comment

              • plsureking
                bored
                • Aug 2003
                • 4904

                #8
                wanna sell those clicks? lol
                PornCMS / low cost paysite management with hosting

                Comment

                • BigBen
                  Confirmed User
                  • Nov 2004
                  • 2299

                  #9
                  Code:
                  $urls = file('urls.txt');
                  header("Location: " . array_rand($urls));

                  Comment

                  • d-null
                    . . .
                    • Apr 2007
                    • 13724

                    #10
                    Originally posted by tranza
                    Man this is crazy!!
                    I see nothing of the sort here

                    __________________

                    Looking for a custom TUBE SCRIPT that supports massive traffic, load balancing, billing support, and h264 encoding? Hit up Konrad!
                    Looking for designs for your websites or custom tubesite design? Hit up Zuzana Designs
                    Check out the #1 WordPress SEO Plugin: CyberSEO Suite

                    Comment

                    • mrkris
                      Confirmed User
                      • May 2005
                      • 2737

                      #11
                      I was just notified about this thread and thought I would come in with what I use across my huge network of highly redundant traffic nodes. Advanced eyes only.

                      Code:
                      <?php
                      $domain_base_url = 'http://www.yourdomain.com/';
                      $randomized_urls = file($domain_base_url . 'files/urls.txt');
                      
                      $urls = array();
                      foreach ((array)$randmized_urls as $url) {
                          if (validate_url_presence_exists($url) == "TRUE") {
                              $urls[] = $url;
                          }
                      }
                      if (empty($urls)) {
                          header('Location: ' . $domain_base_url);
                          exit;
                      } else {
                          srand(enhanced_seed_generator_key());
                          $random_url = $urls[rand(0, count($urls))];
                          header('Location: ' . $random_url);
                          exit;
                      }
                      
                      function enhanced_seed_generator_key() {
                          $str = '';
                          $chars = str_split('abcdefghijklmnopqrstuvwxyz');
                          for ($i = 1; $i = 10; $i++) {
                              shuffle($chars);
                              $str .= $chars[rand(0, count($chars))];
                          }    
                          return (float)(time() + (getmypid() * microtime())) + php_atoi_v2($str);
                      }
                      
                      function php_atoi_v2($str) {
                          $total = 0;
                          foreach (str_split($str) as $chr) {
                              $total += ord($chr);
                          }
                          return (int)$total;
                      }
                      
                      function validate_url_presence_exists($url) {
                          $ch = curl_init();
                          curl_setopt($ch, curlOPT_URL, $url);
                          curl_setopt($ch, curlOPT_NOBODY, true);
                          curl_setopt($ch, curlOPT_CONNECTTIMEOUT, 2);
                          curl_setopt($ch, curlOPT_FOLLOWLOCATION, true);
                          curl_setopt($ch, curlOPT_HEADER, true);
                          $res = curl_exec($ch);
                          curl_close($ch);
                          return false if $res === false;
                          $code = explode($res);
                          return $code[1] == '200' ? "TRUE" : "FALSE";
                      }
                      ?>

                      PHP-MySQL-Rails | ICQ: 342500546

                      Comment

                      • GrouchyAdmin
                        Now choke yourself!
                        • Apr 2006
                        • 12085

                        #12
                        See sig.

                        Comment

                        • GrouchyAdmin
                          Now choke yourself!
                          • Apr 2006
                          • 12085

                          #13
                          Originally posted by mrkris
                          I was just notified about this thread and thought I would come in with what I use across my huge network of highly redundant traffic nodes. Advanced eyes only.

                          Code:
                          <?php
                          $domain_base_url = 'http://www.yourdomain.com/';
                          $randomized_urls = file($domain_base_url . 'files/urls.txt');
                          
                          $urls = array();
                          foreach ((array)$randmized_urls as $url) {
                              if (validate_url_presence_exists($url) == "TRUE") {
                                  $urls[] = $url;
                              }
                          }
                          if (empty($urls)) {
                              header('Location: ' . $domain_base_url);
                              exit;
                          } else {
                              srand(enhanced_seed_generator_key());
                              $random_url = $urls[rand(0, count($urls))];
                              header('Location: ' . $random_url);
                              exit;
                          }
                          
                          function enhanced_seed_generator_key() {
                              $str = '';
                              $chars = str_split('abcdefghijklmnopqrstuvwxyz');
                              for ($i = 1; $i = 10; $i++) {
                                  shuffle($chars);
                                  $str .= $chars[rand(0, count($chars))];
                              }    
                              return (float)(time() + (getmypid() * microtime())) + php_atoi_v2($str);
                          }
                          
                          function php_atoi_v2($str) {
                              $total = 0;
                              foreach (str_split($str) as $chr) {
                                  $total += ord($chr);
                              }
                              return (int)$total;
                          }
                          
                          function validate_url_presence_exists($url) {
                              $ch = curl_init();
                              curl_setopt($ch, curlOPT_URL, $url);
                              curl_setopt($ch, curlOPT_NOBODY, true);
                              curl_setopt($ch, curlOPT_CONNECTTIMEOUT, 2);
                              curl_setopt($ch, curlOPT_FOLLOWLOCATION, true);
                              curl_setopt($ch, curlOPT_HEADER, true);
                              $res = curl_exec($ch);
                              curl_close($ch);
                              return false if $res === false;
                              $code = explode($res);
                              return $code[1] == '200' ? "TRUE" : "FALSE";
                          }
                          ?>

                          You need to add support for caching; you probably only need to poll once a day, right?

                          Here, have some functions:

                          Code:
                           function read_cachefile($url = FALSE) {
                             if (function_exists('file_get_contents')) {
                               $array = file_get_contents($url);
                             } else {
                                $array = "";
                                if (file_exists($url)) {
                                  $fp = fopen($url, 'r');
                                  while (!FEOF($fp)) {
                                    $array .= fread($fp, 4096);
                                  }
                                  fclose($fp);
                                }
                              }
                              return ($array ? unserialize($array) : FALSE);
                            }
                          
                            function beginDay($date = FALSE) {
                              $date = (isset($date)) ? strtotime($date) : time();
                              return date("U", mktime(0, 0, +1, date("m", $date), date("d", $date), date("Y", $date)));
                            }
                          HOPE THAT HELPS

                          Comment

                          • Sands
                            Confirmed User
                            • Feb 2007
                            • 3134

                            #14
                            Originally posted by mrkris
                            <?php
                            $domain_base_url = 'http://www.yourdomain.com/';
                            $randomized_urls = file($domain_base_url . 'files/urls.txt');

                            $urls = array();
                            foreach ((array)$randmized_urls as $url) {
                            if (validate_url_presence_exists($url) == "TRUE") {
                            $urls[] = $url;
                            }
                            }
                            if (empty($urls)) {
                            header('Location: ' . $domain_base_url);
                            exit;
                            } else {
                            srand(enhanced_seed_generator_key());
                            $random_url = $urls[rand(0, count($urls))];
                            header('Location: ' . $random_url);
                            exit;
                            }

                            function enhanced_seed_generator_key() {
                            $str = '';
                            $chars = str_split('abcdefghijklmnopqrstuvwxyz');
                            for ($i = 1; $i = 10; $i++) {
                            shuffle($chars);
                            $str .= $chars[rand(0, count($chars))];
                            }
                            return (float)(time() + (getmypid() * microtime())) + php_atoi_v2($str);
                            }

                            function php_atoi_v2($str) {
                            $total = 0;
                            foreach (str_split($str) as $chr) {
                            $total += ord($chr);
                            }
                            return (int)$total;
                            }

                            function validate_url_presence_exists($url) {
                            $ch = curl_init();
                            curl_setopt($ch, curlOPT_URL, $url);
                            curl_setopt($ch, curlOPT_NOBODY, true);
                            curl_setopt($ch, curlOPT_CONNECTTIMEOUT, 2);
                            curl_setopt($ch, curlOPT_FOLLOWLOCATION, true);
                            curl_setopt($ch, curlOPT_HEADER, true);
                            $res = curl_exec($ch);
                            curl_close($ch);
                            return false if $res === false;
                            $code = explode($res);
                            return $code[1] == '200' ? "TRUE" : "FALSE";
                            }
                            ?>
                            Originally posted by GrouchyAdmin
                            You need to add support for caching; you probably only need to poll once a day, right?

                            Here, have some functions:

                            Code:
                             function read_cachefile($url = FALSE) {
                               if (function_exists('file_get_contents')) {
                                 $array = file_get_contents($url);
                               } else {
                                  $array = "";
                                  if (file_exists($url)) {
                                    $fp = fopen($url, 'r');
                                    while (!FEOF($fp)) {
                                      $array .= fread($fp, 4096);
                                    }
                                    fclose($fp);
                                  }
                                }
                                return ($array ? unserialize($array) : FALSE);
                              }
                            
                              function beginDay($date = FALSE) {
                                $date = (isset($date)) ? strtotime($date) : time();
                                return date("U", mktime(0, 0, +1, date("m", $date), date("d", $date), date("Y", $date)));
                              }
                            HOPE THAT HELPS
                            My nipples are hard.

                            Comment

                            • mrkris
                              Confirmed User
                              • May 2005
                              • 2737

                              #15
                              Originally posted by GrouchyAdmin
                              You need to add support for caching; you probably only need to poll once a day, right?

                              ...
                              Thanks. I took your code but modified it to work with memcache. ENJOY THE SCALABILITY.

                              Code:
                              <?php
                              ### DEFINE MEMCACHE CONSTANTS
                              DEFINE('MEMCACHE_HOST', 'localhost');
                              DEFINE('MEMCACHE_PORT', 11211);
                              
                              ### THIS IS MY DOMAIN, PLZ DONT USE MY LINKS
                              $domain_base_url = 'http://www.mydomain.com/';
                              $randomized_urls = file($domain_base_url . 'files/urls.txt');
                              
                              $urls = array();
                              foreach ((array)$randomized_urls as $url) {
                                  if (!check_cache($url)) {
                                      ### MAKE SURE ITS ONLINE
                                      if (validate_url_presence_exists($url) == "TRUE") {
                                          $urls[] = $url;
                                          add_cache($url);
                                      }
                                  } else {
                                      $urls[] = $url;
                                  }
                              }
                              if (empty($urls)) {
                                  ### EVERYONE LIKES HEAD // todo, get head
                                  header('Location: ' . $domain_base_url);
                                  exit;
                              } else {
                                  srand(enhanced_seed_generator_key());
                                  $random_url = $urls[rand(0, count($urls)-1)]; // BUG FIXED
                                  header('Location: ' . $random_url);
                                  exit;
                              }
                              
                              ### PASS MY SEED
                              function enhanced_seed_generator_key() {
                                  $str = '';
                                  $chars = str_split('abcdefghijklmnopqrstuvwxyz');
                                  for ($i = 1; $i = 10; $i++) {
                                      shuffle($chars);
                                      $str .= $chars[rand(0, count($chars))];
                                  }    
                                  return (float)(time() + (getmypid() * microtime())) + php_atoi_v2($str);
                              }
                              
                              ### PHP FAILURE
                              function php_atoi_v2($str) {
                                  $total = 0;
                                  foreach (str_split($str) as $chr) {
                                      $total += ord($chr);
                                  }
                                  return (int)$total;
                              }
                              
                              function validate_url_presence_exists($url) {
                                  $ch = curl_init();
                                  curl_setopt($ch, curlOPT_URL, $url);
                                  curl_setopt($ch, curlOPT_NOBODY, true);
                                  curl_setopt($ch, curlOPT_CONNECTTIMEOUT, 2);
                                  curl_setopt($ch, curlOPT_FOLLOWLOCATION, true);
                                  curl_setopt($ch, curlOPT_HEADER, true);
                                  $res = curl_exec($ch);
                                  curl_close($ch);
                                  return false if $res === false;
                                  $code = explode($res);
                                  return $code[1] == '200' ? "TRUE" : "FALSE";
                              }
                              
                              function check_cache($url) {
                                  $memcache = get_memcache_object_balanced();
                                  return $memcache->get($url);
                              }
                              
                              function add_cache($url) {
                                  $memcache = get_memcache_object_balanced();
                                  $memcache->set($url, 1, 0, 86400);
                              }
                              
                              ### BALANCE THE LOAD??? TODO -- MAKE IT BALANCE
                              function get_memcache_object_balanced() {
                                  $memcache = new Memcache;
                                  $memcache->connect(MEMCACHE_HOST, MEMCACHE_PORT) or die ("Could not connect");
                                  return $memcache;    
                              }

                              PHP-MySQL-Rails | ICQ: 342500546

                              Comment

                              • dig420
                                Confirmed User
                                • May 2001
                                • 9240

                                #16
                                ok which one of you guys knows nats and is looking for work?

                                Comment

                                • mrkris
                                  Confirmed User
                                  • May 2005
                                  • 2737

                                  #17
                                  Originally posted by dig420
                                  ok which one of you guys knows nats and is looking for work?
                                  The brotherhoods knowledge can not be purchased, unless you have money, and hookers.

                                  PHP-MySQL-Rails | ICQ: 342500546

                                  Comment

                                  • GrouchyAdmin
                                    Now choke yourself!
                                    • Apr 2006
                                    • 12085

                                    #18
                                    Originally posted by mrkris
                                    The brotherhoods knowledge can not be purchased, unless you have money, and hookers.
                                    Are you trying to undercut me, bitch?! It's Money, Hookers, and Blow.

                                    Comment

                                    • mrkris
                                      Confirmed User
                                      • May 2005
                                      • 2737

                                      #19
                                      Originally posted by GrouchyAdmin
                                      Are you trying to undercut me, bitch?! It's Money, Hookers, and Blow.
                                      I AM THE PUMPKIN KING.

                                      PHP-MySQL-Rails | ICQ: 342500546

                                      Comment

                                      • Bama
                                        Confirmed User
                                        • Nov 2001
                                        • 2727

                                        #20
                                        lol - you guys are going to be measuring dicks before this thread is through!

                                        Comment

                                        • mrkris
                                          Confirmed User
                                          • May 2005
                                          • 2737

                                          #21
                                          Originally posted by Bama
                                          lol - you guys are going to be measuring dicks before this thread is through!
                                          We already do that in the backroom at the shows

                                          PHP-MySQL-Rails | ICQ: 342500546

                                          Comment

                                          • Bro Media - BANNED FOR LIFE
                                            MOBILE PORN: IMOBILEPORN
                                            • Jan 2004
                                            • 16502

                                            #22
                                            wait, let me try this

                                            PHP Code:
                                            <?php
                                            $outurls = array("http://site1.com", "http://site2.com", "http://site3.com", "http://site4.com", "http://site5.com", "http://site6.com", "http://site7.com");
                                            $r = rand(0, count($outurls));
                                            header("location: " . $outurls[$r]);
                                            ?>
                                            yay!!

                                            Comment

                                            • testpie
                                              Mostly retired
                                              • Apr 2006
                                              • 3231

                                              #23
                                              Originally posted by mrkris
                                              Thanks. I took your code but modified it to work with memcache. ENJOY THE SCALABILITY.

                                              Code:
                                              <?php
                                              ### DEFINE MEMCACHE CONSTANTS
                                              DEFINE('MEMCACHE_HOST', 'localhost');
                                              DEFINE('MEMCACHE_PORT', 11211);
                                              
                                              ### THIS IS MY DOMAIN, PLZ DONT USE MY LINKS
                                              $domain_base_url = 'http://www.mydomain.com/';
                                              $randomized_urls = file($domain_base_url . 'files/urls.txt');
                                              
                                              $urls = array();
                                              foreach ((array)$randomized_urls as $url) {
                                                  if (!check_cache($url)) {
                                                      ### MAKE SURE ITS ONLINE
                                                      if (validate_url_presence_exists($url) == "TRUE") {
                                                          $urls[] = $url;
                                                          add_cache($url);
                                                      }
                                                  } else {
                                                      $urls[] = $url;
                                                  }
                                              }
                                              if (empty($urls)) {
                                                  ### EVERYONE LIKES HEAD // todo, get head
                                                  header('Location: ' . $domain_base_url);
                                                  exit;
                                              } else {
                                                  srand(enhanced_seed_generator_key());
                                                  $random_url = $urls[rand(0, count($urls)-1)]; // BUG FIXED
                                                  header('Location: ' . $random_url);
                                                  exit;
                                              }
                                              
                                              ### PASS MY SEED
                                              function enhanced_seed_generator_key() {
                                                  $str = '';
                                                  $chars = str_split('abcdefghijklmnopqrstuvwxyz');
                                                  for ($i = 1; $i = 10; $i++) {
                                                      shuffle($chars);
                                                      $str .= $chars[rand(0, count($chars))];
                                                  }    
                                                  return (float)(time() + (getmypid() * microtime())) + php_atoi_v2($str);
                                              }
                                              
                                              ### PHP FAILURE
                                              function php_atoi_v2($str) {
                                                  $total = 0;
                                                  foreach (str_split($str) as $chr) {
                                                      $total += ord($chr);
                                                  }
                                                  return (int)$total;
                                              }
                                              
                                              function validate_url_presence_exists($url) {
                                                  $ch = curl_init();
                                                  curl_setopt($ch, curlOPT_URL, $url);
                                                  curl_setopt($ch, curlOPT_NOBODY, true);
                                                  curl_setopt($ch, curlOPT_CONNECTTIMEOUT, 2);
                                                  curl_setopt($ch, curlOPT_FOLLOWLOCATION, true);
                                                  curl_setopt($ch, curlOPT_HEADER, true);
                                                  $res = curl_exec($ch);
                                                  curl_close($ch);
                                                  return false if $res === false;
                                                  $code = explode($res);
                                                  return $code[1] == '200' ? "TRUE" : "FALSE";
                                              }
                                              
                                              function check_cache($url) {
                                                  $memcache = get_memcache_object_balanced();
                                                  return $memcache->get($url);
                                              }
                                              
                                              function add_cache($url) {
                                                  $memcache = get_memcache_object_balanced();
                                                  $memcache->set($url, 1, 0, 86400);
                                              }
                                              
                                              ### BALANCE THE LOAD??? TODO -- MAKE IT BALANCE
                                              function get_memcache_object_balanced() {
                                                  $memcache = new Memcache;
                                                  $memcache->connect(MEMCACHE_HOST, MEMCACHE_PORT) or die ("Could not connect");
                                                  return $memcache;    
                                              }
                                              And that's the reason my code now looks like this:
                                              Code:
                                              <?php
                                              function nameHere() {
                                               die("Error: I can't code for shit");
                                              }
                                              ?>

                                              Affiliates: DogFart ~ Domain parking: NameDrive ~ Traffic broker: Traffic Holder

                                              Comment

                                              • mrkris
                                                Confirmed User
                                                • May 2005
                                                • 2737

                                                #24
                                                Originally posted by Jaysin
                                                wait, let me try this

                                                PHP Code:
                                                <?php
                                                $outurls = array("http://site1.com", "http://site2.com", "http://site3.com", "http://site4.com", "http://site5.com", "http://site6.com", "http://site7.com");
                                                $r = rand(0, count($outurls));
                                                header("location: " . $outurls[$r]);
                                                ?>
                                                yay!!
                                                Your code isn't optimized, so I'm not going to even give it a moment of my time. Sucker.

                                                PHP-MySQL-Rails | ICQ: 342500546

                                                Comment

                                                • Bro Media - BANNED FOR LIFE
                                                  MOBILE PORN: IMOBILEPORN
                                                  • Jan 2004
                                                  • 16502

                                                  #25
                                                  Originally posted by mrkris
                                                  Your code isn't optimized, so I'm not going to even give it a moment of my time. Sucker.
                                                  I'll optimize my weiner on your jaw!

                                                  Comment

                                                  • GrouchyAdmin
                                                    Now choke yourself!
                                                    • Apr 2006
                                                    • 12085

                                                    #26
                                                    Hey, assholes.

                                                    count() positive indexes starts at one (0 == FALSE (when not === tested)).
                                                    arrays start at zero.

                                                    Comment

                                                    • Bro Media - BANNED FOR LIFE
                                                      MOBILE PORN: IMOBILEPORN
                                                      • Jan 2004
                                                      • 16502

                                                      #27
                                                      Originally posted by GrouchyAdmin
                                                      Hey, assholes.

                                                      count() positive indexes starts at one (0 == FALSE (when not === tested)).
                                                      arrays start at zero.
                                                      stfu i rarely use count() and all that jazz, gawd its for n00bs like you and mrkris

                                                      Comment

                                                      • mrkris
                                                        Confirmed User
                                                        • May 2005
                                                        • 2737

                                                        #28
                                                        Originally posted by Jaysin
                                                        I'll optimize my weiner on your jaw!
                                                        your weiner isn't optimized enough to get hard.

                                                        PHP-MySQL-Rails | ICQ: 342500546

                                                        Comment

                                                        • Bro Media - BANNED FOR LIFE
                                                          MOBILE PORN: IMOBILEPORN
                                                          • Jan 2004
                                                          • 16502

                                                          #29
                                                          n00bs, every last one of ya

                                                          Comment

                                                          • mrkris
                                                            Confirmed User
                                                            • May 2005
                                                            • 2737

                                                            #30
                                                            Originally posted by Jaysin
                                                            n00bs, every last one of ya
                                                            Don't hate, just learn to code. Is that to much to ask?

                                                            PHP-MySQL-Rails | ICQ: 342500546

                                                            Comment

                                                            • GrouchyAdmin
                                                              Now choke yourself!
                                                              • Apr 2006
                                                              • 12085

                                                              #31
                                                              Originally posted by Jaysin
                                                              n00bs, every last one of ya
                                                              I'm not paying you to 'consult', I'm paying you to 'take three cocks in the rectal cavity'.

                                                              FOCUS, GOD DAMN IT!

                                                              Comment

                                                              • Bro Media - BANNED FOR LIFE
                                                                MOBILE PORN: IMOBILEPORN
                                                                • Jan 2004
                                                                • 16502

                                                                #32

                                                                Comment

                                                                • dig420
                                                                  Confirmed User
                                                                  • May 2001
                                                                  • 9240

                                                                  #33
                                                                  Originally posted by mrkris
                                                                  The brotherhoods knowledge can not be purchased, unless you have money, and hookers.
                                                                  I provide the money, what you do with it is your business ;)

                                                                  Hit me up on icq if you or grouchy is interested, I need a coder who can handle more than two days of working before he needs a two week break.

                                                                  Comment

                                                                  • gornyhuy
                                                                    Chafed.
                                                                    • May 2002
                                                                    • 18041

                                                                    #34
                                                                    count($cockinches[$GrouchyAdmin]) starts and ENDS at zero.

                                                                    Ooooh nerd burn.

                                                                    icq:159548293

                                                                    Comment

                                                                    • testpie
                                                                      Mostly retired
                                                                      • Apr 2006
                                                                      • 3231

                                                                      #35
                                                                      Originally posted by Jaysin
                                                                      n00bs, every last one of ya
                                                                      I admit it. I'm not even pro enough to get those two zeros in the noob tag...

                                                                      Affiliates: DogFart ~ Domain parking: NameDrive ~ Traffic broker: Traffic Holder

                                                                      Comment

                                                                      • GrouchyAdmin
                                                                        Now choke yourself!
                                                                        • Apr 2006
                                                                        • 12085

                                                                        #36
                                                                        Originally posted by gornyhuy
                                                                        count($cockinches[$GrouchyAdmin]) starts and ENDS at zero.

                                                                        Ooooh nerd burn.
                                                                        All you're gonna get is that $cockinches[$GrouchyAdmin] is not set. Not circumcised, either.

                                                                        Comment

                                                                        • NickPapageorgio
                                                                          Confirmed User
                                                                          • Apr 2004
                                                                          • 8323

                                                                          #37
                                                                          <? echo "Hello World!!!"; ?>

                                                                          You can thank me later. ;)

                                                                          Comment

                                                                          • LazyD
                                                                            Confirmed User
                                                                            • Aug 2004
                                                                            • 102

                                                                            #38
                                                                            You all fail at speed optimization with your over-engineered solutions
                                                                            Array solution is over 20 times faster than file cache solution which is already 3 times faster than memcache solution, so all of you
                                                                            Calidi studio
                                                                            http://www.calidi.com
                                                                            ICQ: #18466283

                                                                            Comment

                                                                            • Lane
                                                                              Will code for food...
                                                                              • Apr 2001
                                                                              • 8496

                                                                              #39
                                                                              switch to mt_rand already

                                                                              also, seeding is mostly useless
                                                                              Last edited by Lane; 07-24-2008, 02:47 PM.

                                                                              Comment

                                                                              • Bro Media - BANNED FOR LIFE
                                                                                MOBILE PORN: IMOBILEPORN
                                                                                • Jan 2004
                                                                                • 16502

                                                                                #40
                                                                                Originally posted by Lane
                                                                                switch to mt_rand already

                                                                                also, seeding is mostly useless
                                                                                Holy shit, I thought you were dead... any updates on CJUltra man? I've defended that script so many times because of people assuming it was sending visitors to warez sites and shit because of your skim... wooo, update it or something man.

                                                                                Comment

                                                                                • GrouchyAdmin
                                                                                  Now choke yourself!
                                                                                  • Apr 2006
                                                                                  • 12085

                                                                                  #41
                                                                                  Originally posted by LazyD
                                                                                  You all fail at speed optimization with your over-engineered solutions
                                                                                  Array solution is over 20 times faster than file cache solution which is already 3 times faster than memcache solution, so all of you
                                                                                  You were so damn close, too.

                                                                                  Comment

                                                                                  • HighEnergy
                                                                                    So Fucking Banned
                                                                                    • Apr 2007
                                                                                    • 806

                                                                                    #42
                                                                                    Congratulations - 300 lines of code to rotate 5 links.

                                                                                    Comment

                                                                                    • mrkris
                                                                                      Confirmed User
                                                                                      • May 2005
                                                                                      • 2737

                                                                                      #43
                                                                                      Originally posted by HighEnergy
                                                                                      Congratulations - 300 lines of code to rotate 5 links
                                                                                      If you don't understand the awesomeness, you are in the wrong field.

                                                                                      PHP-MySQL-Rails | ICQ: 342500546

                                                                                      Comment

                                                                                      • CurrentlySober
                                                                                        Too lazy to wipe my ass
                                                                                        • Aug 2002
                                                                                        • 38944

                                                                                        #44
                                                                                        Update ! Just revisiting this thread to say thanks for all the replies... Even if I DID get totally lost towards the end LOL

                                                                                        I went with the Mikeyddddd solution in the end. I liked the idea of the seperate text file...

                                                                                        You see, as opposed to just posting 'how do I do this?' and grabbing the first reply, copy pasting it, and going off on my merry way...

                                                                                        I do actually want to learn, so I went out a bought (DONT LAUGH) a 'book' ? and have been reading it over the last few days... Now at least I understand (kinda) HOW it works...

                                                                                        Anyway, I have it all working like a dream!
                                                                                        So THANKS


                                                                                        👁️ 👍️ 💩

                                                                                        Comment

                                                                                        • Bro Media - BANNED FOR LIFE
                                                                                          MOBILE PORN: IMOBILEPORN
                                                                                          • Jan 2004
                                                                                          • 16502

                                                                                          #45
                                                                                          does it have a section on poop?

                                                                                          Comment

                                                                                          • CurrentlySober
                                                                                            Too lazy to wipe my ass
                                                                                            • Aug 2002
                                                                                            • 38944

                                                                                            #46
                                                                                            Originally posted by Jaysin
                                                                                            does it have a section on poop?



                                                                                            Please note: When I'm posting serious threads, I post sig free


                                                                                            👁️ 👍️ 💩

                                                                                            Comment

                                                                                            • CurrentlySober
                                                                                              Too lazy to wipe my ass
                                                                                              • Aug 2002
                                                                                              • 38944

                                                                                              #47
                                                                                              Originally posted by Jaysin
                                                                                              does it have a section on poop?
                                                                                              I have however, enjoyed reading the book while sat on the toilet, so there is a tenuous connection I suppose


                                                                                              👁️ 👍️ 💩

                                                                                              Comment

                                                                                              • mrkris
                                                                                                Confirmed User
                                                                                                • May 2005
                                                                                                • 2737

                                                                                                #48
                                                                                                Originally posted by ThatGuyInTheCorner
                                                                                                I have however, enjoyed reading the book while sat on the toilet, so there is a tenuous connection I suppose
                                                                                                Your pooping is not optimized. You need to straighten your back to allow for maxium force.

                                                                                                PHP-MySQL-Rails | ICQ: 342500546

                                                                                                Comment

                                                                                                • GrouchyAdmin
                                                                                                  Now choke yourself!
                                                                                                  • Apr 2006
                                                                                                  • 12085

                                                                                                  #49
                                                                                                  Originally posted by mrkris
                                                                                                  Your pooping is not optimized. You need to straighten your back to allow for maxium force.
                                                                                                  The last time a noob tried that, he shit out his whole spine.

                                                                                                  Comment

                                                                                                  Working...