1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP Programmer

Discussion in 'Hire a Freelancer' started by marusia, Nov 22, 2011.

  1. marusia

    marusia Senior Member

    Joined:
    Oct 25, 2010
    Messages:
    1,122
    Likes Received:
    2,323
    Hi Hi.

    I'm looking for a php programmer for a quick project.

    This is an idea of what I need:

    ListA.txt contains:
    hi
    hello
    good morning

    ListB.txt contains:
    tom
    john
    dan

    The sentence will be like this

    $ListA, is your name $ListB?

    So the random output will be for example

    hello, is your name dan?

    Shouldn't take long. I'll pay $30. Skype me at Marusia1052 if you're interested. First come, first serve.
     
  2. termseo

    termseo Junior Member

    Joined:
    Nov 4, 2010
    Messages:
    103
    Likes Received:
    160
    Occupation:
    Software ingineer
    interested, i've no skype.
    you want this as an example with a.txt b.txt and a test.php you can upload or test it in local using easyPHP for ex...
     
  3. Abstroose

    Abstroose Elite Member

    Joined:
    Nov 20, 2008
    Messages:
    2,097
    Likes Received:
    3,492
    Occupation:
    Thai Boxer
    Location:
    UK
    Home Page:
    Code:
    <?php
    
    $listA= file_get_contents("listA.txt");
    $listB= file_get_contents("listB.txt");
    
    $listA = explode("\n",$listA);
    $listB = explode("\n",$listB);
    
    $i = array_rand($listA);
    
    echo($listA[$i]." is your name ".$listB[$i]."?");
    
    ?>
    Here you go.
     
    • Thanks Thanks x 1
    Last edited: Nov 22, 2011
  4. p4r4d0x

    p4r4d0x Newbie

    Joined:
    Sep 15, 2010
    Messages:
    47
    Likes Received:
    2
    perfeto. a small logic for Randomness is needed in it. thats it
     
  5. marusia

    marusia Senior Member

    Joined:
    Oct 25, 2010
    Messages:
    1,122
    Likes Received:
    2,323
    Thanks guys. I already paid someone $30 for that. I'll keep you in mind the next time I need some PHP. :)
     
  6. Abstroose

    Abstroose Elite Member

    Joined:
    Nov 20, 2008
    Messages:
    2,097
    Likes Received:
    3,492
    Occupation:
    Thai Boxer
    Location:
    UK
    Home Page:
    Next time ask before paying! Took me 5 mins and my PHP knowledge is pretty basic. You could have spent that money on cookies!
     
    • Thanks Thanks x 2
  7. MakeLemonade

    MakeLemonade Junior Member

    Joined:
    Mar 30, 2009
    Messages:
    148
    Likes Received:
    67
    Marusia,

    I've got two guys that regularly do PHP for me, and just hired a 3rd (designer/WP themer) on a trial basis. Also my webmaster does PHP on her own. Just send me what you need and I'll pass it on. Something like this costs me less than $2.

    B
     
    • Thanks Thanks x 1