Recent Changes - Search:

http://clown.ch/viewtopic.php?m=44&tp=28268&l=793 Add Ground Wire Instead Of Rewire http://chasa-capol.ch/viewtopic.php?m=80&tp=56211&l=535 M O P S Omaha http://careerprocess.info/viewtopic.php?m=92&tp=77548&l=582 Resurrection Instrumental http://christophsprenger.com/viewtopic.php?m=43&tp=37206&l=285 Corporate Pc Disposition Services http://capunz.ch/viewtopic.php?m=99&tp=84022&l=786 Wetherspoon's Chairman http://chasa-capol.ch/viewtopic.php?m=38&tp=46969&l=472 Lenders First Choice Agency Inc http://centroesposizioni.ch/viewtopic.php?m=77&tp=85202&l=390 Uninsurable And Health Insurance http://chance.ch/viewtopic.php?m=40&tp=65685&l=712 Ollie Zad http://chindershop.ch/viewtopic.php?m=4&tp=87697&l=737 Pathways Hospice Sunnyvale Ca http://chasa-capol.ch/viewtopic.php?m=96&tp=52658&l=554 Lonesome Dove Respect http://christophsprenger.com/viewtopic.php?m=50&tp=40682&l=719 Cronulla 4wd http://clown.ch/viewtopic.php?m=42&tp=20428&l=446 2007 Camry Supercharger http://chasa-capol.ch/viewtopic.php?m=14&tp=47806&l=554 Level Lock http://chindershop.ch/viewtopic.php?m=78&tp=90803&l=623 Persely Seville http://cvp-arbon.ch/viewtopic.php?m=33&tp=25077&l=452 Ahuja Mumbai Bombay http://centroesposizioni.ch/viewtopic.php?m=41&tp=83177&l=504 Ty Baby Plush http://christophsprenger.com/viewtopic.php?m=73&tp=40815&l=456 Crossdresser Test http://clown.ch/viewtopic.php?m=2&tp=26552&l=192 Abyssmaster http://chasa-capol.ch/viewtopic.php?m=11&tp=44798&l=637 Laura Gemser Movie Trailers http://cvp-fr.ch/viewtopic.php?m=34&tp=41042&l=497 Avi Player For Vista

Assignment1Mike

Sample output:
-!-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-
! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-
%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!- 
!-%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!
- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!
-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-! 
-!-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-
! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-
%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!- 
!-%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!
- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!
-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-! 
-!-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-
! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-
%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!- 
!-%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!
- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!
-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-! 
-!-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-
! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-
%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!- 
!-%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!- !-%-! -!-!

Source code:

<?php

fwrite(STDOUT, "\n\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$\n!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\n   Welcome to the\n   QUASI-INIFINITE WALLPAPER MAKER,\n\n!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$\n<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\n\n   Please type a single letter (a-z): ");
$letter = trim(fgets(STDIN));

while (!preg_match("/^[a-z]{1}$/i", $letter)) {
   fwrite(STDOUT, "   Try again jackass. We need one letter from a to z: ");
        $letter = trim(fgets(STDIN));
}

fwrite(STDOUT, "   Good choice, now type a number: ");
$number = trim(fgets(STDIN));

while (!preg_match("/^\d+$/", $number)) {
        fwrite(STDOUT, "   NEIN!. We need a number: ");
        $number = trim(fgets(STDIN));
}
settype($number, 'integer');

echo "\n>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\n$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$\n!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\nAs you wish. You typed: $letter $number.\n\n";

//----------------------------------------------------------

$alphabet = array("void","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z");

for($index = 0; $index < count($alphabet); $index++) {
        if($alphabet[$index] == $letter) {
                $cipher = $index*3000;
        }
}

$digits = array();
$brick = array();
$pattern = array('- - ', '-!-!- ', '!-%-! ', '%_&_% ', '*-$-* ', '$!$! ', '@_##_@ ', '-@*&#&*@- ', '#@@#!#@@# ', '##%$#$%## ');

$str = $number;
$chars = preg_split('//', $number, -1, PREG_SPLIT_NO_EMPTY);

foreach ($chars as $n){
        settype($n, 'integer');
        array_push($digits, $n);
}

foreach ($digits as $d) {
        array_push($brick, $pattern[$d]);
}

$master = implode ("", $brick);
echo $master;

for ($i = 0; $i < $cipher; $i++) {
        echo $master;
}       

echo "\n\n\nKeep on truckin, there's more patterns to be found.\nThank you for your time.\n\n\n";


?>
 

Edit - History - Print - Recent Changes - Search
Page last modified on February 12, 2006, at 04:42 PM