Hi. I have a working script, the trouble is it takes AGES to load. The code is huge and bulky and there has got to be a better way of doing this. Any ideas on how to optamise (I cant spell lol) this?
Here is the code for your amusmement.
As you will see, it seems long, but it is easy to follow.
<?
$rand1 = rand(10,99);
$rand2 = rand(10,99);
$rand3 = rand(10,99);
//
//
//
if($north_basic != ""){
$north1 = $north_basic{0};
$north2 = $north_basic{1};
$north = $rand1;
$north .= $north1;
$north .= $rand2;
$north .= $north2;
$north .= $rand3;
} else {
}
if($east_basic != ""){
$east1 = $east_basic{0};
$east2 = $east_basic{1};
$east = $rand1;
$east .= $east1;
$east .= $rand2;
$east .= $east2;
$east .= $rand3;
} else {
}
if($south_basic != ""){
$south1 = $south_basic{0};
$south2 = $south_basic{1};
$south = $rand1;
$south .= $south1;
$south .= $rand2;
$south .= $south2;
$south .= $rand3;
} else {
}
if($west_basic != ""){
$west1 = $west_basic{0};
$west2 = $west_basic{1};
$west = $rand1;
$west .= $west1;
$west .= $rand2;
$west .= $west2;
$west .= $rand3;
} else {
}