Page 1 of 1

Having issues getting Echo to display...

Posted: Wed Apr 28, 2010 2:05 pm
by IsaacBoda
I'm not sure if I have a var wrong or my array's setup incorrectly, but this is what I have coded so far:

Code: Select all

<?php

$alpha = array('b','c','d','f','g','h','j','k','l','m','n','p','q','r','s','t','v','w','x','z');
$alpha2 = array('a','e','i','o','u','y');
$alpha3 = array('b','c','d','f','g','h','j','k','l','m','n','p','q','r','s','t','v','w','x','z');
$alpha4 = ('i');
$alpha5 = ('o');
$extension = '.com <br />';

for ($i=0; $i<19; $i++)
{
   for ($j=0; $j<6; $j++)
   {
      for ($k=0; $k<19; $k++)
      {
		  for ($l=0; $l<0; $l++)
      	  {
			  for ($m=0; $m<0; $m++)
      		  {
					echo $alpha[$i] . $alpha2[$j] . $alpha3[$k] . $alpha4[$l] . $alpha5[$m] . $extension . "\n";  
			      }
			  }
		  }
	  }
  }
?> 
It runs the script, but doesn't display anything.

I'm a noob I know... haha.. but we all must start somewhere.

Re: Having issues getting Echo to display...

Posted: Wed Apr 28, 2010 2:09 pm
by Benjamin
Why are you programmatically generating useless domain names?

Re: Having issues getting Echo to display...

Posted: Wed Apr 28, 2010 2:19 pm
by IsaacBoda
I wouldn't say useless.... I work at a domain registrar.

5 letter pronounceable names sell really well because they are easy to brand.

I've seen some go for $5k-10K

-----------------------------------
Edit - Fixed issue my <0 needed to be <1

Re: Having issues getting Echo to display...

Posted: Wed Apr 28, 2010 2:22 pm
by Benjamin
Just wanted to make sure you weren't doing anything shady.

Two of the for loops had <0.